/* tom-apk.com – tmavý vzhled ve stylu produktových stránek, akcent TomOS */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0b0d10;
  --bg-3: #14171b;
  --ink: #f5f7fa;
  --muted: #9aa3ad;
  --faint: #7d8691;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #00e5ff;
  --accent-ink: #001a1f;
  --danger: #ff6b5e;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  margin: 0; font: 600 13px/1.3 var(--display); font-stretch: 112%;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.label { margin: 0; font: 600 12px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- horní lišta */
.top {
  position: sticky; top: 0; z-index: 40; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.top::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font: 800 19px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.top-right { display: flex; align-items: center; gap: 26px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.auth { position: relative; display: flex; align-items: center; gap: 10px; }
/* přepínač jazyka: tlačítko se zeměkoulí a zkratkou jazyka, pod ním nabídka všech jazyků (otevírá ji core.js,
   bez skriptu :focus-within). Odkazy na všechny jazyky jsou v HTML kvůli čtečkám a vyhledávačům. */
.jazyk { position: relative; display: inline-flex; flex: none; }
.jazyk-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted);
  font: 700 11px/1 var(--display); font-stretch: 112%; letter-spacing: 0.08em;
}
.jazyk-btn svg { width: 15px; height: 15px; flex: none; }
/* užší obrazovka: jen zeměkoule (užší než dřív pilulka „EN“), zkratka jazyka je v nabídce zaškrtnutá */
@media (max-width: 1279px) {
  .jazyk-btn { width: 28px; padding: 0; justify-content: center; }
  .jazyk-btn span { display: none; }
}
.jazyk-btn:hover, .jazyk.open .jazyk-btn { color: var(--ink); border-color: var(--accent); }
.jazyk-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 172px;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.jazyk.open .jazyk-menu, .jazyk:not(.js):focus-within .jazyk-menu { display: block; }
.jazyk-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font-size: 15px; line-height: 1.2;
}
.jazyk-menu a:hover, .jazyk-menu a:focus-visible { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.jazyk-menu a[aria-current] { color: var(--accent); }
.jazyk-menu a[aria-current]::after { content: "✓"; font-size: 13px; }

/* nabídka jazyka podle prohlížeče (core.js): malá karta vlevo dole, na telefonu nad spodní lištou */
.jazyk-nabidka {
  position: fixed; left: 20px; bottom: 20px; z-index: 55; max-width: 430px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 46px 14px 18px;
  background: var(--bg-3); border: 1px solid rgba(0, 229, 255, 0.35); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: jazyk-nabidka 0.45s ease-out both;
}
.jazyk-nabidka p { margin: 0; flex: 1 1 190px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.jazyk-zavrit {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.jazyk-zavrit:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
@keyframes jazyk-nabidka { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .jazyk-nabidka { animation: none; } }
@media (max-width: 760px) {
  .jazyk-nabidka { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; }
}
/* telefon: menší mezery, aby se vešlo logo, Stáhnout, přepínač i „Přihlásit se“ */
@media (max-width: 640px) {
  .top { gap: 10px; }
  .top-right { gap: 10px; }
}
@media (max-width: 350px) {
  .top.wrap { padding: 0 14px; }
  .top, .top-right { gap: 8px; }
}
.user-btn {
  display: flex; align-items: center; gap: 9px; cursor: pointer; border: 0; background: none;
  font-size: 14px; color: var(--ink); padding: 4px;
}
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--display); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 220px;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
}
.menu a, .menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 15px;
}
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.menu .menu-email { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }

.notice { position: relative; z-index: 41; background: #062a31; border-bottom: 1px solid rgba(0, 229, 255, 0.3); font-size: 15px; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 10px; padding-bottom: 10px; }
.notice p { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 600; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); background: var(--accent); color: var(--accent-ink);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); filter: none; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 94, 0.5); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.more { font-weight: 600; font-size: 17px; }
.more::after { content: " ›"; }

/* ---------------------------------------------------------------- úvod */
.hero { text-align: center; padding: clamp(64px, 11vw, 140px) 0 0; overflow: hidden; }
.hero h1 {
  margin: 14px 0 0; font: 900 clamp(5rem, 19vw, 15rem)/0.86 var(--display); font-stretch: 78%;
  letter-spacing: -0.045em;
}
.hero .sub { margin: 22px auto 0; max-width: 24ch; font: 600 clamp(1.5rem, 3.4vw, 2.4rem)/1.15 var(--display); letter-spacing: -0.015em; }
.hero .lead { margin: 18px auto 0; max-width: 36rem; color: var(--muted); }
.hero .ctas { margin-top: 34px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.hero-shot { margin: clamp(48px, 8vw, 96px) auto 0; max-width: 1280px; padding: 0 var(--gutter); }
.frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.frame img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- sekce aplikací */
.app-sec { padding: clamp(110px, 16vw, 200px) 0 0; }
.app-name {
  margin: 12px 0 0; font: 900 clamp(3.6rem, 11vw, 8.5rem)/0.9 var(--display); font-stretch: 80%;
  letter-spacing: -0.04em;
}
.app-lead { margin: 22px 0 0; max-width: 34rem; font-size: clamp(19px, 2vw, 22px); color: var(--muted); }
.app-lead strong { color: var(--ink); font-weight: 600; }
.app-note { margin: 18px 0 0; font-size: 15px; color: var(--faint); }
.app-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 48px; }
.rating-sum { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { border-color: var(--accent); }
.file-info { font-size: 13px; color: var(--faint); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.crop { aspect-ratio: 4 / 5; }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: 6% 40%; }

.feat { list-style: none; padding: 0; margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px clamp(28px, 4vw, 56px); }
.feat li { border-top: 1px solid var(--line-2); padding-top: 18px; color: var(--muted); font-size: 17px; }
.feat li strong { display: block; color: var(--ink); font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 6px; }

.phones { display: flex; gap: clamp(14px, 3vw, 28px); justify-content: center; align-items: flex-start; }
.phone {
  width: min(46%, 300px); border-radius: clamp(28px, 4vw, 44px); padding: clamp(6px, 0.8vw, 9px);
  background: #1b1f24; border: 1px solid var(--line-2);
}
.phone img { border-radius: clamp(22px, 3.4vw, 36px); width: 100%; height: auto; }
.phone:nth-child(2) { margin-top: clamp(40px, 7vw, 90px); }

.full-shot { margin: clamp(56px, 8vw, 96px) auto 0; max-width: 1400px; padding: 0 var(--gutter); }
.floating { max-width: 560px; margin-left: auto; }

.hx { white-space: nowrap; }
.hx::before {
  content: ""; display: inline-block; width: 0.78em; height: 0.88em; margin-right: 0.2em; vertical-align: -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 32'%3E%3Cpath d='M14 2l11 6.5v15L14 30 3 23.5v-15z' fill='none' stroke='%2300E5FF' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------------------------------------------------------------- launcher */
.launcher-sec { padding: clamp(120px, 17vw, 220px) 0 0; text-align: center; }
.launcher-sec .app-lead { margin-left: auto; margin-right: auto; }
.launcher-sec .app-actions { justify-content: center; }
.launcher-sec .feat { text-align: left; }

/* ---------------------------------------------------------------- otázky */
.faq { padding: clamp(120px, 17vw, 220px) 0 clamp(80px, 10vw, 140px); }
.faq h2 { margin: 12px 0 clamp(32px, 5vw, 56px); font: 900 clamp(2.8rem, 7vw, 5rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.035em; }
details { border-top: 1px solid var(--line-2); max-width: 860px; }
details:last-of-type { border-bottom: 1px solid var(--line-2); }
summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 600 clamp(18px, 2vw, 21px)/1.35 var(--sans); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 0 24px; color: var(--muted); max-width: 44rem; }
summary:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- patička */
footer { border-top: 1px solid var(--line); padding: 40px 0 52px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }

/* ---------------------------------------------------------------- odhalování při posunu */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.vidim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- dialogy a formuláře */
dialog {
  border: 1px solid var(--line-2); border-radius: 20px; padding: 0;
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--bg-3); color: var(--ink);
}
dialog.wide { width: min(680px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.dlg-head h2 { font: 800 1.9rem/1.05 var(--display); font-stretch: 85%; margin: 6px 0 0; letter-spacing: -0.02em; }
.dlg-close { width: 40px; height: 40px; flex: none; border: 0; background: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.dlg-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.dlg-close svg { width: 20px; height: 20px; }
.dlg-body { padding: 18px 26px 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 10px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 18px; border-radius: 999px; border: 0; background: #fff; color: #111; font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn-google svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.04);
}
.field textarea { min-height: 110px; resize: vertical; }
.field small { display: block; margin-top: 6px; color: var(--faint); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 16px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.msg.err { background: rgba(255, 107, 94, 0.12); color: #ffb3ab; }
.msg.ok { background: rgba(0, 229, 255, 0.1); color: #a9f4ff; }
.small-note { font-size: 13px; color: var(--faint); margin: 16px 0 0; }
.rate-box { padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.rate-box p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.rate-input { display: inline-flex; gap: 4px; }
.rate-input button { border: 0; background: none; padding: 4px; cursor: pointer; border-radius: 6px; }
.rate-input svg { width: 30px; height: 30px; }
.comment { border-top: 1px solid var(--line); padding: 14px 0; }
.comment:first-child { border-top: 0; }
.comment .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; color: var(--faint); }
.comment .meta strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #d5dbe1; }
.empty { color: var(--faint); font-size: 15px; margin: 6px 0 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: #fff; color: #111; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px);
}

/* ---------------------------------------------------------------- podstránky (účet, administrace, soukromí) */
.page { padding: clamp(48px, 8vw, 100px) 0 clamp(80px, 10vw, 140px); }
.page h1 { font: 900 clamp(3rem, 9vw, 6rem)/0.92 var(--display); font-stretch: 80%; letter-spacing: -0.04em; margin: 12px 0 0; }
/* dlouhá slova (Datenschutzerklärung, Netzwerkbedingungen) se rozdělí podle jazyka stránky, nevylezou ven */
.page h1, .page h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.page .lead { margin-top: 18px; color: var(--muted); }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 34px); margin-top: 24px; }
.panel h2 { font: 800 1.6rem/1.1 var(--display); font-stretch: 88%; margin: 0 0 16px; letter-spacing: -0.015em; }
.panel h3 { font: 700 1.15rem/1.2 var(--display); margin: 26px 0 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { color: var(--faint); font-size: 15px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.list-plain li:first-child { border-top: 0; }
.danger-zone { border-color: rgba(255, 107, 94, 0.35); }
.prose { max-width: 46rem; }
.prose h2 { font: 800 1.6rem/1.15 var(--display); margin: 44px 0 10px; letter-spacing: -0.015em; }
.prose p, .prose li { color: #c6cdd4; }
.prose .ph { background: #4a3b00; color: #ffe27a; padding: 0 4px; border-radius: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--ink); }
.admin-app { border-top: 1px solid var(--line); max-width: none; }
.admin-app:first-of-type { border-top: 0; }
.admin-app summary { font-size: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 600 11px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.table td.text { min-width: 220px; max-width: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; font: 600 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.badge.on { background: rgba(0, 229, 255, 0.12); color: var(--accent); }
progress { width: 100%; height: 8px; accent-color: var(--accent); }

/* statistiky webu (Můj účet, jen správce) */
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { padding: 14px; } }
.stat { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat p { margin: 0; }
.stat .stat-label { font-size: 13px; color: var(--faint); }
.stat .stat-num { font: 800 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat .stat-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chart { position: relative; padding-top: 30px; }
.chart-plot { position: relative; height: 160px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); }
.chart-grid { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--line-2); pointer-events: none; }
.chart-grid span { position: absolute; left: 0; bottom: 4px; font-size: 12px; color: var(--faint); }
.bar-col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; outline: none; }
.bar-col:hover, .bar-col:focus-visible { background: rgba(255, 255, 255, 0.05); }
.bar-col:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.bar { width: 100%; max-width: 26px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-col:hover .bar, .bar-col:focus-visible .bar { background: #8cf4ff; }
.chart-tip { position: absolute; transform: translateX(-50%); background: #fff; color: #111; font-size: 13px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 8px; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- mobil */
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .feat { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .floating { margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .feat { grid-template-columns: 1fr; }
  .user-btn .user-name { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .hero .ctas .btn { width: 100%; }
}

/* ---------------------------------------------------------------- síť TomOS */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-link { display: none; color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a.nav-dl { color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--ink); }
/* odkazy na sekce úvodní stránky: na užší obrazovce by se menu zalomilo, sekce jdou projít i přepínačem snímků */
@media (max-width: 960px) { .nav a.nav-sekce { display: none; } }
/* v ostatních jazycích jsou popisky delší (Launcher herunterladen, Se connecter…), sekce se schovají dřív */
@media (max-width: 1080px) { html:not([lang="cs"]) .nav a.nav-sekce { display: none; } }
/* telefon: delší „Download/Télécharger“ a jednoslovné „Anmelden/Connexion“ by vytlačily přihlášení z obrazovky;
   stažení je hned pod hlavičkou v úvodu */
@media (max-width: 400px) { html:not([lang="cs"]) .top .top-link { display: none; } }
/* stránky sítě na tabletu: v ostatních jazycích menu bez ikonek, jinak se nevejde (Abonnements, Siguiendo…) */
@media (max-width: 900px) { html:not([lang="cs"]) .vd-nav a svg { display: none; } }
img.avatar { object-fit: cover; padding: 0; }
.user-btn { position: relative; }
.user-btn .dot { position: absolute; left: 25px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid #000; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--sans); vertical-align: 1px; }

.sit-main { padding: 20px 0 80px; }
.sit-col { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.sit-title { font: 900 clamp(2.4rem, 7vw, 3.6rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.03em; margin: 12px 0 20px; }
.back { margin: 0 0 12px; font-size: 15px; }
.sit-col .tabs { margin: 14px 0 16px; }
.sentinel { height: 1px; }

.av { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1d3a40; color: var(--accent); font: 700 14px/1 var(--display); }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.av.xl { width: clamp(88px, 22vw, 128px); height: clamp(88px, 22vw, 128px); font-size: 40px; }
.av.sys { background: var(--accent); color: var(--accent-ink); }

.search { position: relative; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 11px 16px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 12px; max-height: 360px; overflow: auto; }

.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.people .empty { padding: 8px 0; }

.composer { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.composer-row { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { flex: 1; min-height: 46px; resize: vertical; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; padding: 8px 0; }
.composer textarea:focus-visible { outline: none; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.composer progress { margin-top: 10px; }
.composer.invite p { margin: 0 0 10px; color: var(--muted); }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews:not(:empty) { margin-top: 10px; }
.pv { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #000; }
.pv img, .pv video { width: 100%; height: 100%; object-fit: cover; }
.pv-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.7); cursor: pointer; }
.pv-x svg { width: 14px; height: 14px; }

.feed { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.post { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 6px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.post-who:hover { text-decoration: none; }
.post-who strong { display: block; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handle { display: block; font-size: 13px; color: var(--faint); }
.post-time { margin-left: auto; font-size: 13px; color: var(--faint); white-space: nowrap; }
.post-text { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.status-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; background: rgba(0, 229, 255, 0.08); color: #a9f4ff; }
.status-note.bad { background: rgba(255, 107, 94, 0.12); color: #ffb3ab; }
.post-media { margin: 12px -16px 0; background: #000; }
.post-media video { display: block; width: 100%; max-height: 78vh; background: #000; }
.post-media.tall video { width: auto; max-width: 100%; margin: 0 auto; }
.post-media.grid { display: grid; gap: 2px; }
.post-media.grid img { width: 100%; height: 100%; object-fit: cover; }
.post-media.n1 img { height: auto; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.post-media.n2, .post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media.n2 a, .post-media.n4 a { aspect-ratio: 1; }
.post-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.post-media.n3 a:first-child { grid-row: span 2; }
.post-media.grid a { overflow: hidden; display: block; min-height: 0; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 4px -8px 0; padding: 0; border: 0; font-size: inherit; color: inherit; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; border-radius: 10px; }
.act:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.act.like.on { color: var(--accent); }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.pop-wrap { position: relative; }
.post-head .pop-wrap { margin-right: -8px; }
.pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 35; min-width: 200px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; }
.pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pop button:hover { background: rgba(255, 255, 255, 0.07); }
.pop button.danger { color: var(--danger); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 16px; margin-top: 14px; }
.sit-page .sit-col:has(.video-grid) { max-width: 1100px; }
.vtile { color: var(--ink); min-width: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.vthumb:hover img { transform: scale(1.03); }
.vdur { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.82); color: #fff; font: 600 12px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.vmeta { display: flex; gap: 12px; margin-top: 12px; }
.vmeta .av { width: 36px; height: 36px; }
.vtext { min-width: 0; }
.vtitle { margin: 0; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
a.vtitle:hover, a.vby:hover { text-decoration: none; color: var(--ink); }
.vby { display: block; margin: 3px 0 0; font-size: 14px; color: var(--muted); }

.shorts { height: min(calc(100svh - 190px), 820px); min-height: 440px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; margin-top: 4px; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.short { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 6px 0; }
.short-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; background: #000; }
.short-frame video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.short-info { position: absolute; left: 0; right: 64px; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); pointer-events: none; }
.short-info a, .short-info p { pointer-events: auto; }
.short-info p { margin: 8px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short-info .av { width: 32px; height: 32px; }
.short-side { position: absolute; right: 6px; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.short-side .act { color: #fff; flex-direction: column; gap: 2px; font-size: 12px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); }
.short-side .act.like.on { color: var(--accent); }
.short-side .ico svg { width: 28px; height: 28px; }
.short-side .pop { bottom: 0; top: auto; right: calc(100% + 4px); }

.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: start; margin-top: 8px; }
.ph-main h1 { margin: 0; font: 900 clamp(1.9rem, 6vw, 2.8rem)/1 var(--display); font-stretch: 85%; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ph-main .handle { font-size: 15px; margin-top: 4px; }
.bio { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.ph-stats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--muted); }
.ph-stats strong { color: var(--ink); }
.link-plain { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.link-plain:hover { color: var(--ink); }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ph-actions .act { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px; }

.comments-box { margin-top: 14px; padding-bottom: 14px; }
.comments-box h2 { font: 800 1.3rem/1.2 var(--display); margin: 4px 0 12px; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.comment-form textarea { flex: 1; font: inherit; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; resize: vertical; min-height: 44px; }
.pcomments { list-style: none; margin: 0; padding: 0; }
.pcomment { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.pcomment:first-child { border-top: 0; }
.pc-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 13px; color: var(--faint); }
.pc-meta a { color: var(--ink); }
.pc-meta .handle { display: inline; }
.pc-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; color: #d5dbe1; }

.dm { display: grid; grid-template-columns: 300px 1fr; height: min(calc(100svh - 200px), 760px); min-height: 420px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.dm-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv-list { list-style: none; margin: 0; padding: 6px; }
.conv-list .empty { padding: 12px; }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); }
.conv:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.conv.on { background: rgba(0, 229, 255, 0.1); }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.conv-time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.conv-last { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dm-back { display: none; font-size: 26px; line-height: 1; padding: 4px 10px; }
.thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(78%, 520px); align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.bubble.mine { align-self: flex-end; background: #0c3c45; border-color: rgba(0, 229, 255, 0.25); border-radius: 16px 16px 4px 16px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.b-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--faint); }
.b-report { font-size: 11px; font-weight: 500; color: var(--faint); opacity: 0; }
.bubble:hover .b-report, .b-report:focus-visible { opacity: 1; }
.dm-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.dm-form textarea { flex: 1; font: inherit; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 18px; padding: 10px 14px; resize: none; max-height: 140px; field-sizing: content; }
.dm-form .btn { padding: 10px 12px; }
.dm-form .ico svg { width: 18px; height: 18px; }
.dm-cant { padding: 14px; margin: 0; border-top: 1px solid var(--line); }
.dm-hint { margin: auto; padding: 20px; text-align: center; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.nitem { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 14px; margin-bottom: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.nitem.unread { border-color: rgba(0, 229, 255, 0.45); }
.nitem.mod { border-color: rgba(255, 107, 94, 0.4); }
.nitem .label { margin-bottom: 4px; }
.ntext { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.ntime { margin: 4px 0 0; font-size: 12px; color: var(--faint); }

.pic-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.report { border-top: 1px solid var(--line); padding: 18px 0; }
.report:first-of-type { border-top: 0; }
.report-head { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.report-details { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--line-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.report .post { margin: 10px 0; }
.snap { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); }
.snap p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.person-snap { display: flex; gap: 14px; align-items: flex-start; }
.decision { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--bg-3); }
.decision .field { margin-bottom: 8px; }
.modes .check { margin-bottom: 12px; }

.bottom-bar { display: none; }

@media (max-width: 760px) {
  .dm { grid-template-columns: 1fr; height: calc(100svh - 230px); }
  .dm.open .dm-list { display: none; }
  .dm:not(.open) .dm-pane { display: none; }
  .dm-back { display: inline-flex; }
  .sit-page { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .sit-page footer { display: none; }
  .bottom-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-bar a { flex: 1; text-align: center; padding: 17px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .bottom-bar a.on { color: var(--accent); }
  .bottom-bar a:hover { text-decoration: none; }
  .bottom-bar .count { margin-left: 4px; }
  .sit-col .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .sit-col .tabs button { padding: 8px 14px; white-space: nowrap; }
  .shorts-mode .search { display: none; }
  .shorts-mode .sit-main { padding-top: 6px; padding-bottom: 0; }
  .shorts { height: calc(100svh - 56px - 68px - 64px - env(safe-area-inset-bottom)); min-height: 360px; margin-top: 0; }
  .profile-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-link { display: inline; }
  .post { border-radius: 0; border-left: 0; border-right: 0; }
  .sit-col { padding: 0; }
  .sit-col > .back, .sit-col > .sit-title, .sit-col > #sit > .search, .sit-col > #sit > .tabs, .sit-col #profile > .profile-head, .sit-col #profile > .tabs, .sit-col #notices, .sit-col > #sit > .composer { margin-left: 16px; margin-right: 16px; }
  .video-grid { padding: 0 16px; }
  .post-media { margin-left: -16px; margin-right: -16px; }
  .short-frame { border-radius: 0; }
}

/* ---------------------------------------------------------------- TomOS Videa (hlavní stránka, stránka videa, klipy) */
.vd-top {
  position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.vd-top .brand { justify-self: start; font-size: 20px; }
.vd-top .brand svg { width: 24px; height: 24px; }
.vd-nav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.035); }
.vd-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.vd-nav a svg { width: 18px; height: 18px; flex: none; }
.vd-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.vd-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.vd-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.vd-right .auth { margin-left: 6px; }
.vd-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.vd-icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); text-decoration: none; }
.vd-icon svg { width: 21px; height: 21px; }
.hex-btn {
  width: 40px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-btn:hover { filter: brightness(1.12); }
.hex-btn svg { width: 22px; height: 22px; }
.hex-btn.big { width: 76px; height: 86px; }
.hex-btn.big svg { width: 34px; height: 34px; }
/* hledání: jen lupa, po kliknutí se rozbalí pole */
.vd-search { display: flex; align-items: center; height: 40px; border: 1px solid transparent; border-radius: 999px; }
.vd-search input { display: none; width: 220px; height: 38px; padding: 0 16px 0 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.vd-search input:focus-visible { outline: none; }
.vd-top.searching .vd-search { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.vd-top.searching .vd-search input { display: block; }
.vd-top.searching .vd-search .vd-icon:hover { background: none; }

.vd-main { max-width: 1480px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 64px; }
.vd-foot .foot { max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.vd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 44px 0 18px; }
.vd-head h2 { margin: 6px 0 0; font: 900 clamp(1.9rem, 4vw, 2.7rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.025em; }
.vd-view > .vd-head:first-child { margin-top: 18px; }
.vd-more { font-weight: 600; font-size: 15px; white-space: nowrap; }
.vd-sub { margin: 30px 0 14px; font: 800 1.35rem/1.1 var(--display); font-stretch: 88%; }

.vd-hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(12px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(0, 229, 255, 0.11), transparent 55%), var(--bg-2);
}
.vd-hero-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.vd-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.vd-hero-media:hover img { transform: scale(1.025); }
.vd-hero-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vd-hero-text { padding-right: clamp(0px, 1.5vw, 18px); }
.vd-hero-title { margin: 10px 0 16px; font: 900 clamp(2.1rem, 4.4vw, 3.6rem)/0.93 var(--display); font-stretch: 78%; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.vd-hero-desc { margin: 14px 0 0; color: var(--muted); font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vd-hero .vd-stats { margin-top: 10px; }
.vd-hero .vd-time { margin-left: 0; }
.vd-hero .form-actions { margin-top: 22px; }

.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vd-card { display: flex; flex-direction: column; min-width: 0; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, transform .2s; }
.vd-card:hover { border-color: rgba(0, 229, 255, 0.45); transform: translateY(-2px); }
.vd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #000; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .2s, transform .2s; }
.vd-play svg { width: 22px; height: 22px; margin-left: 3px; }
.vd-card:hover .vd-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vd-len { position: absolute; left: 9px; top: 9px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.72); color: var(--accent); font: 700 12px/1.2 var(--display); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.vd-body { display: flex; flex-direction: column; gap: 9px; padding: 13px 8px 6px; }
.vd-title { color: var(--ink); font: 700 19px/1.12 var(--display); font-stretch: 90%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vd-title:hover { color: var(--accent); text-decoration: none; }
.vd-by { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.vd-by:hover { color: var(--ink); text-decoration: none; }
.av.xs { width: 22px; height: 22px; font-size: 9px; }
.vd-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; color: var(--faint); font-size: 13px; }
.vd-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.vd-stats .ico svg { width: 16px; height: 16px; }
.vd-time { margin-left: auto; }

.kl-row { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.kl-card { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; scroll-snap-align: start; }
.kl-card:hover { text-decoration: none; border-color: rgba(0, 229, 255, 0.5); }
.kl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kl-card:hover img { transform: scale(1.04); }
.kl-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: var(--accent); font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.kl-badge svg { width: 14px; height: 14px; }
.kl-over { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 5px; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.86)); }
.kl-title { font: 700 16px/1.12 var(--display); font-stretch: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kl-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.kl-meta svg { width: 14px; height: 14px; }

/* přehrávač klipů: video v rámečku a vedle panel s autorem, textem a tlačítky v řadě */
.vd-page .shorts { height: calc(100svh - 64px - 44px); min-height: 440px; margin-top: 0; }
.shorts-mode .vd-main { padding-top: 10px; padding-bottom: 10px; }
.shorts-mode .vd-foot { display: none; }
.short { position: relative; display: flex; justify-content: center; align-items: stretch; gap: 20px; padding: 8px 0; }
.short-frame { border: 1px solid var(--line-2); border-radius: 24px; }
.kl-sound { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.kl-sound svg { width: 20px; height: 20px; }
.kl-panel { align-self: flex-end; width: 300px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.kl-text { margin: 0; max-height: 9em; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.kl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act.kl-act, .act.vd-act { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; color: var(--ink); }
.act.kl-act.on, .act.vd-act.on { color: var(--accent); border-color: rgba(0, 229, 255, 0.5); }
.kl-actions .pop-wrap > .act, .vd-actions .pop-wrap > .act { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px; }
.kl-panel .pop { top: auto; bottom: calc(100% + 4px); }

/* stránka videa */
.vd-player { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #000; }
.vd-player video { display: block; width: 100%; max-height: 78vh; background: #000; }
.vd-player.tall video { width: auto; height: 78vh; max-width: 100%; margin: 0 auto; }
.vd-watch .status-note { margin-top: 14px; }
.vd-watch-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.vd-panel { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); }
.vd-watch-title { margin: 8px 0 12px; font: 900 clamp(1.9rem, 3.6vw, 2.8rem)/0.98 var(--display); font-stretch: 80%; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.vd-info .vd-stats { font-size: 14px; }
.vd-info .vd-time { margin-left: 0; }
.vd-author { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vd-author > div { flex: 1; min-width: 0; }
.vd-author a { color: var(--ink); }
.vd-author strong { font-size: 17px; }
.vd-author .handle { display: block; }
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-desc { margin-top: 20px; }
.vd-desc .label { margin-bottom: 8px; }
.vd-desc .desc-text { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; color: #d5dbe1; }
.vd-desc.collapsed .desc-text { max-height: 6.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.vd-comments h2 { margin: 0 0 14px; font: 800 1.45rem/1.1 var(--display); font-stretch: 88%; }

.vd-empty { max-width: 480px; margin: 64px auto; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.vd-empty h2 { margin: 10px 0 0; color: var(--ink); font: 900 2.1rem/1 var(--display); font-stretch: 80%; letter-spacing: -0.02em; }
.vd-empty p { margin: 0; }
.vd-empty .form-actions { justify-content: center; margin-top: 8px; }
.vd-grid-more:not(:empty) { margin-top: 18px; }
.kl-section + .vd-grid-more:not(:empty) { margin-top: 36px; }
.posts-col { max-width: 640px; }
.posts-col .feed { margin-top: 14px; }
.vd-people { max-width: 640px; }
.vd-people h3 { margin: 6px 0 4px; font: 800 1.2rem/1.1 var(--display); }

/* okno Nahrát video */
.drop { display: grid; justify-items: center; gap: 10px; margin-bottom: 18px; padding: 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
.drop p { margin: 0; color: var(--muted); font-size: 15px; }
.drop p strong { color: var(--ink); font-size: 17px; }
.drop .hex-btn { width: 56px; height: 64px; cursor: default; }
.drop video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; }

@media (max-width: 1280px) {
  .vd-top.searching { grid-template-columns: auto 1fr; }
  .vd-top.searching .vd-nav { display: none; }
}
@media (max-width: 1023px) {
  .vd-nav a { padding: 8px 14px; }
  .vd-top.searching { grid-template-columns: 1fr; }
  .vd-top.searching .brand { display: none; }
  .vd-top.searching .vd-right { justify-self: stretch; }
  .vd-top.searching .vd-search { flex: 1; }
  .vd-top.searching .vd-search input { width: auto; flex: 1; min-width: 0; }
  .vd-hero { grid-template-columns: 1fr; }
  .vd-hero-text { padding: 0 6px 6px; }
  .vd-watch-grid { grid-template-columns: 1fr; }
  .kl-panel { width: 260px; }
}
@media (max-width: 760px) {
  .vd-nav, .vd-top .hex-btn, .vd-top .vd-dl { display: none; }
  .vd-top { grid-template-columns: 1fr auto; height: 58px; padding: 0 10px 0 14px; }
  .vd-top.searching .vd-dl, .vd-top.searching .auth, .vd-top.searching .jazyk { display: none; }
  .vd-main { padding: 12px 12px 24px; }
  .vd-head { margin: 30px 0 14px; }
  .vd-hero { border-radius: 22px; }
  .vd-grid { grid-template-columns: 1fr; gap: 14px; }
  .kl-row { grid-auto-columns: 150px; }
  .vd-page .shorts { height: calc(100svh - 58px - 64px - 20px - env(safe-area-inset-bottom)); min-height: 360px; }
  .short { padding: 0; }
  .short-frame { border-radius: 18px; }
  .kl-panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; gap: 8px; padding: 46px 14px 14px; border: 0; border-radius: 0 0 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 38%); }
  .kl-text { max-height: 4.5em; font-size: 14px; }
  .kl-panel .handle { color: rgba(255, 255, 255, 0.7); }
  .act.kl-act, .kl-actions .pop-wrap > .act { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.28); color: #fff; padding: 6px 10px; }
  .vd-player { border-radius: 16px; }
  .vd-player.tall video { height: 70vh; }
  .vd-panel { border-radius: 20px; }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px 10px; font-size: 11px; }
  .bottom-bar .ico svg { width: 23px; height: 23px; }
  .bottom-bar .bb-upload { flex: 1; display: grid; place-items: center; padding: 4px 0; border: 0; background: none; cursor: pointer; }
  .bottom-bar .bb-upload .hex-btn { width: 42px; height: 48px; }
}

/* starší názvy tříd z účtu a administrace */
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-main { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- merch */
.merch-hero { max-width: 46rem; }
.merch-hero h1 { margin-top: 14px; }
.merch-stav {
  display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--muted);
}
.merch-stav::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.merch-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 24px; margin-top: clamp(40px, 6vw, 72px);
}
.produkt {
  display: flex; flex-direction: column; margin: 0; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
}
.produkt img { width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--bg-3); }
.produkt-text { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 26px 26px; }
.produkt h2 { margin: 0; font: 800 1.7rem/1.1 var(--display); font-stretch: 90%; letter-spacing: -0.015em; }
.produkt-text > p:not(.label):not(.produkt-stav) { margin: 0; color: #c6cdd4; font-size: 16px; }
.produkt-stav {
  margin: auto 0 0; padding-top: 12px; color: var(--accent);
  font: 600 12px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase;
}
.produkt-pata {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  margin-top: auto; padding-top: 14px;
}
.produkt-pata .produkt-stav { margin: 0; padding: 0; }
.produkt-cena { margin: 0; font: 800 1.75rem/1 var(--display); font-stretch: 90%; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.produkt.hlavni { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.produkt.hlavni img { height: 100%; object-fit: cover; }
.produkt.hlavni .produkt-text { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.produkt.hlavni h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.produkt.hlavni .produkt-stav { margin-top: 10px; }
.produkt.hlavni .produkt-pata { margin-top: 10px; }
.produkt.hlavni .produkt-pata .produkt-stav { margin-top: 0; }

/* merch: košík a objednávka (assets/merch.js) */
.merch-nadpis { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.merch-nadpis:first-child { margin-top: 0; }
.merch-pozn { margin: 0; font-size: 14px; color: var(--faint); }
.velikosti { display: flex; flex-wrap: wrap; gap: 8px; }
.velikost {
  min-width: 56px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 600 15px/1 var(--sans);
}
.velikost:hover { border-color: rgba(255, 255, 255, 0.32); }
.velikost[aria-checked="true"] { border-color: var(--accent); background: rgba(0, 229, 255, 0.12); color: var(--accent); }
.pocet { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.pocet-btn { width: 38px; height: 38px; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; border-radius: 50%; }
.pocet-btn:hover:not([disabled]) { background: rgba(255, 255, 255, 0.07); }
.pocet-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.pocet-cislo { min-width: 26px; text-align: center; font-weight: 600; }
.merch-dlg .msg { margin: 18px 0 0; }
.merch-dlg .form-actions { margin-top: 22px; }
.kosik-radky { display: grid; gap: 4px; }
.kosik-radek {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.kosik-radek .link-btn { grid-column: 1; justify-self: start; font-size: 14px; }
.kosik-nazev { display: flex; flex-direction: column; gap: 2px; }
.kosik-nazev span { font-size: 14px; color: var(--muted); }
.kosik-cena { font-weight: 600; white-space: nowrap; }
.kosik-souhrn { display: grid; gap: 6px; padding: 16px 0 6px; font-size: 15px; color: var(--muted); }
.kosik-souhrn > div { display: flex; justify-content: space-between; gap: 16px; }
.kosik-celkem { padding-top: 8px; color: var(--ink); font: 800 1.35rem/1.1 var(--display); font-stretch: 90%; }
.kosik-form { margin-top: 10px; }
.pole-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.past { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.kosik-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 700 16px/1 var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.obj-polozky { margin: 16px 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 560px) {
  .pole-2 { grid-template-columns: 1fr; }
  .kosik-radek { grid-template-columns: minmax(0, 1fr) auto; }
  .kosik-radek .pocet { grid-column: 1; justify-self: start; }
  .kosik-radek .kosik-cena { grid-column: 2; grid-row: 1; }
}
@media (max-width: 860px) {
  .produkt.hlavni { grid-template-columns: 1fr; }
  .produkt.hlavni img { height: auto; }
}


/* ---------------------------------------------------------------- Tutoriály (videa.html?t=tutorialy, assets/tutorialy.js) */
.tu-player { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: clamp(18px, 2.4vw, 30px); padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; }
.tu-media { position: relative; align-self: start; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.tu-media video, .tu-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tu-cover { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.tu-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tu-cover:hover img { transform: scale(1.02); }
.tu-cover .hex-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tu-yt { position: absolute; right: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.72); color: var(--muted); font-size: 12px; }
.tu-side { display: flex; flex-direction: column; min-width: 0; padding: 14px 10px 8px 0; }
.tu-title { margin: 10px 0; font: 900 clamp(1.8rem, 2.8vw, 2.5rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.tu-desc { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tu-steps { list-style: none; margin: 0 -6px; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.tu-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; padding: 9px 8px; border: 1px solid transparent; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.tu-step:hover { background: rgba(255, 255, 255, 0.05); }
.tu-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tu-step[aria-current] { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.4); }
.tu-num { width: 30px; height: 34px; display: grid; place-items: center; background: var(--bg-3); color: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font: 800 13px/1 var(--display); }
.tu-step[aria-current] .tu-num { background: var(--accent); color: var(--accent-ink); }
.tu-st { display: grid; gap: 2px; }
.tu-st strong { font: 700 16px/1.3 var(--sans); }
.tu-st span { color: var(--faint); font-size: 14px; line-height: 1.45; }
.tu-time { padding-top: 2px; color: var(--faint); font: 600 13px/1.5 var(--display); font-variant-numeric: tabular-nums; }
.tu-side .form-actions { margin-top: 16px; }
.tu-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tu-chip { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.tu-chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.tu-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tu-card.on { border-color: rgba(0, 229, 255, 0.6); }
.tu-sys { color: var(--accent); font-weight: 600; }
@media (max-width: 1023px) {
  .tu-player { grid-template-columns: 1fr; }
  .tu-side { padding: 4px 8px 8px; }
  .tu-steps { max-height: none; }
}
@media (max-width: 760px) {
  .tu-player { padding: 6px; border-radius: 22px; }
  .tu-media { border-radius: 16px; }
  .vd-head.tu-head { flex-direction: column; align-items: flex-start; }
  .tu-chips { justify-content: flex-start; }
}

/* anglická verze (/en/): poznámka na úvodu, že aplikace jsou zatím česky */
.cz-note { margin: 16px auto 0; max-width: 42ch; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* hlavička stránek sítě s přepínačem jazyka: tablet (761–1023 px) bez ikonek stažení a YouTube (stažení je v menu účtu
 a v patičce) a s užším menu, telefon s menšími mezerami. Bez toho hlavička přetékala doprava. */
@media (max-width: 1023px) {
  .vd-top { gap: 12px; }
  .vd-top .vd-dl { display: none; }
  .vd-nav a { padding: 8px 11px; }
}
/* ikonka YouTube se vejde až od 1180 px; užší pravý sloupec hlavičky by jinak zalomil tlačítko Přihlásit se */
@media (max-width: 1179px) {
  .vd-top .vd-yt { display: none; }
}
@media (max-width: 400px) {
  .vd-top { gap: 8px; }
  .vd-right { gap: 4px; }
  .vd-right .auth { margin-left: 2px; }
}

/* ---------------------------------------------------------------- podpora: členství Podporovatel (podpora.html, assets/podpora.js) */
.podpora-hero { max-width: 46rem; }
.podpora-hero h1 { margin-top: 14px; }
.podpora-karta {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px);
  align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 48px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
}
.podpora-cena h2 { margin: 10px 0 0; font: 900 clamp(2.4rem, 6vw, 4rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.035em; }
.podpora-cena h2 span { color: var(--accent); }
.podpora-cena > p:last-child { margin: 14px 0 0; color: #c6cdd4; font-size: 17px; }
.podpora-akce { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.podpora-akce .msg { margin: 0 0 12px; align-self: stretch; }
.podpora-akce .small-note { margin-top: 12px; }
.podpora-akce .produkt-stav { margin: 0; padding: 0; }
.podpora-clen { margin: 0 0 14px; font-weight: 600; }
.podpora-prevod {
  display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 56px); align-items: start;
  margin-top: 24px; padding: clamp(24px, 4vw, 40px); background: var(--bg-2); border: 1px solid var(--accent); border-radius: 22px;
}
.podpora-prevod[hidden] { display: none; }
.prevod-qr svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.prevod-text h2 { margin: 10px 0 18px; font: 800 1.6rem/1.1 var(--display); font-stretch: 88%; letter-spacing: -0.015em; }
.prevod-text .kv dd { font-variant-numeric: tabular-nums; }
.prevod-text .small-note { margin-top: 14px; }
.podpora-sekce { margin-top: clamp(64px, 9vw, 112px); }
.podpora-sekce > h2 { margin: 0 0 8px; font: 900 clamp(2.2rem, 5vw, 3.4rem)/0.95 var(--display); font-stretch: 80%; letter-spacing: -0.03em; }
.podpora-sekce .feat { margin-top: 28px; }
.podpora-sekce > h2 + details { margin-top: 24px; }
.podpora-pozn { margin: 24px 0 0; font-size: 15px; color: var(--faint); max-width: 44rem; }
.podpora-pocet { margin: 16px 0 0; color: var(--muted); }
.podpora-jmena { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.podpora-jmena li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; }
.podpora-jmena a { color: var(--ink); }
.podpora-jmena a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .podpora-karta, .podpora-prevod { grid-template-columns: 1fr; }
  .prevod-qr { max-width: 260px; }
}
.panel .empty + .stat-grid { margin-top: 18px; } /* administrace → Podporovatelé: dlaždice pod větou o stavu */
