/* Epapyrus – mobile-first. Tokeny pro světlý i tmavý režim, bezpečné okraje (výřez, home indikátor),
   dotykové cíle ≥ 44 px, plynulé písmo 320 px – tablet – desktop, omezení animací dle systému. */
:root {
  --brand: #4044EE; --brand-2: #6B6EF5; --brand-ink: #FFFFFF; --navy: #0A132D;
  --bg: #F6F6FB; --surface: #FFFFFF; --surface-2: #EEEFF6; --text: #11142A; --muted: #62677D; --line: #E3E5EE;
  --ok: #117A4A; --warn: #A15C07; --klub: linear-gradient(135deg, #4044EE, #8B5CF6);
  --shadow: 0 1px 2px rgba(17,20,42,.06), 0 6px 20px rgba(17,20,42,.08);
  --shadow-lg: 0 18px 50px rgba(17,20,42,.28);
  --r: 16px; --r-l: 24px;
  --tabs-h: 64px; --mini-h: 66px; --top-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --pad: clamp(16px, 4.2vw, 32px);
  --cover-w: clamp(116px, 31vw, 170px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020; --surface: #141A2E; --surface-2: #1C2440; --text: #EEF0F8; --muted: #A2A8BE; --line: #252D48;
    --ok: #4ADE80; --warn: #FBBF24; --brand-2: #8B8EFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
    --bg: #0B1020; --surface: #141A2E; --surface-2: #1C2440; --text: #EEF0F8; --muted: #A2A8BE; --line: #252D48;
    --ok: #4ADE80; --warn: #FBBF24; --brand-2: #8B8EFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); }
body {
  font: 16px/1.5 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  padding: 0 var(--safe-r) calc(var(--tabs-h) + var(--safe-b) + 12px) var(--safe-l);
}
body.has-mini { padding-bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 20px); }
body.lock { overflow: hidden; }
h1, h2, h3 { font-family: Ubuntu, Roboto, sans-serif; line-height: 1.18; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 6.4vw, 34px); }
h2 { font-size: clamp(19px, 5vw, 23px); }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--brand); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
img { max-width: 100%; display: block; }
svg { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- hlavička + taby */
.top {
  position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 700 21px Ubuntu, sans-serif; }
.brand img { border-radius: 8px; }
.test-flag { font-size: 11px; font-weight: 700; letter-spacing: .06em; background: #FDE68A; color: #5B3B00; padding: 4px 9px; border-radius: 99px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  height: calc(var(--tabs-h) + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid var(--line);
}
.tabs a {
  flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; position: relative; isolation: isolate;
}
.tabs a.on { color: var(--brand); }
.tabs a.on::before { content: ""; position: absolute; top: 7px; width: 56px; height: 32px; border-radius: 99px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); z-index: -1; }

main { max-width: 1180px; margin: 0 auto; padding: 6px var(--pad) 8px; outline: none; }

/* ---------------------------------------------------------------- domů */
.hello { margin: 6px 0 16px; }
.hello p { color: var(--muted); margin-top: 4px; }
.klub-card {
  position: relative; overflow: hidden; border-radius: var(--r-l); padding: 20px; color: #fff; background: var(--klub);
  box-shadow: 0 14px 34px rgba(64,68,238,.32); margin-bottom: 26px; display: grid; gap: 12px;
}
.klub-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.klub-card h2 { font-size: clamp(20px, 5.4vw, 26px); }
.klub-card p { opacity: .92; max-width: 46ch; }
.klub-card .btn { background: #fff; color: #2B2FBF; justify-self: start; box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 5px 10px; border-radius: 99px; justify-self: start; }
.pill svg { width: 14px; height: 14px; }

.shelf { margin: 0 0 28px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shelf-head a { font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; padding: 10px 0 10px 10px; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--cover-w); gap: 14px; overflow-x: auto; align-items: start;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px;
  padding: 8px 16px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--text);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }


/* Klub „v přípravě" – štítek místo tlačítka nákupu */
.soon-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .02em; background: rgba(251, 191, 36, .16); color: var(--warn); border: 1px solid rgba(251, 191, 36, .45); }
.soon-pill svg { width: 16px; height: 16px; }
/* ---------------------------------------------------------------- karta titulu */
.card { display: block; text-decoration: none; color: inherit; min-width: 0; }
.card:active .cover { transform: scale(.97); }
.cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.cover.audio { aspect-ratio: 1 / 1; }
.cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.cover .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 12px 40px;
  font: 700 14px/1.2 Ubuntu, sans-serif; color: #fff; background: linear-gradient(160deg, var(--c1, #4044EE), var(--c2, #1B1F5E));
}
.cover .ph small { font: 500 11.5px Roboto, sans-serif; opacity: .82; }
.tag {
  position: absolute; z-index: 2; left: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 99px; color: #fff;
  background: rgba(10,14,34,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag svg { width: 13px; height: 13px; }
.tag.klub { left: auto; right: 7px; background: var(--klub); padding: 4px 8px; }
.card .t { margin-top: 9px; font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 26vw, 156px), 1fr)); gap: 18px 12px; }

.sk { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 14px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.sk-cover { aspect-ratio: 2/3; } .sk-line { height: 12px; margin-top: 10px; width: 80%; border-radius: 6px; }
.sk-title { height: 22px; width: 45%; border-radius: 8px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- hledání */
.search-bar { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 12; background: var(--bg);
  margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 12px; box-shadow: 0 12px 16px -14px rgba(0,0,0,.55); isolation: isolate; }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 6px 0 14px; min-height: 52px; box-shadow: var(--shadow); }
.search-field svg { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 12px 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-btn { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 12px 0 0; }
.seg button { flex: 1; border: 0; background: none; min-height: 40px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; min-height: 44px; font-size: 15px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; border: 0; background: var(--line); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
/* žánry jako kompaktní barevné štítky – na telefonu je vidět skoro všech 40 najednou */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat {
  border: 0; border-radius: 999px; padding: 8px 13px; color: #fff; font: 600 13.5px/1.2 Ubuntu, sans-serif; cursor: pointer;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.cat-n { display: none; }
.empty { text-align: center; padding: 48px 12px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 44px; height: 44px; opacity: .5; }
.more { display: flex; margin: 22px auto 6px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 14px; gap: 10px; }

/* ---------------------------------------------------------------- detail */
.dt-hero { position: relative; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 14px; overflow: hidden; isolation: isolate; }
.dt-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4);
  opacity: .5; transform: scale(1.1); z-index: -2; }
.dt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 20%, var(--bg) 92%); }
.back-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; margin: 0 0 6px -6px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dt-main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 16px; }
.dt-main .cover { width: min(56vw, 240px); box-shadow: var(--shadow-lg); border-radius: 18px; }
.dt-main .cover.audio { aspect-ratio: 1/1; width: min(66vw, 280px); }
.dt-by { font-size: 16px; margin-top: 6px; color: var(--muted); }
.dt-by b { color: var(--text); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); }
.badge svg { width: 16px; height: 16px; }
.badge.klub { background: var(--klub); color: #fff; border: 0; }
.badge.ok { color: var(--ok); }
.cta { display: grid; gap: 10px; margin: 18px 0 6px; }
.cta .btn { width: 100%; }
.cta .hint { font-size: 13.5px; color: var(--muted); text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .12s, filter .12s; box-shadow: 0 6px 18px rgba(64,68,238,.28);
}
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn:disabled { opacity: .55; }
.btn svg { width: 20px; height: 20px; }
.note { background: var(--surface-2); border-radius: 14px; padding: 13px 15px; font-size: 14.5px; color: var(--muted); }
.note.warn { border-left: 4px solid var(--warn); }
.section { margin-top: 26px; }
.section h3 { margin-bottom: 10px; }
.desc { white-space: pre-line; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 500; padding: 10px 0; min-height: 44px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fact small { color: var(--muted); display: block; font-size: 12.5px; }
.fact span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tracks li + li { border-top: 1px solid var(--line); }
.tracks button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: none; border: 0; text-align: left; }
.tracks .n { width: 28px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
.tracks .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracks .d { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; flex: none; }
.tracks li.on .tt, .tracks li.on .n { color: var(--brand); font-weight: 700; }
.tracks button:disabled { opacity: .55; cursor: default; }
@media (min-width: 760px) {
  .dt-main { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: end; gap: 30px; }
  .dt-main .cover, .dt-main .cover.audio { width: 250px; }
  .badges { justify-content: flex-start; }
  .cta { grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); }
  .cta .btn { width: auto; } .cta .hint { grid-column: 1 / -1; text-align: left; }
}

/* ---------------------------------------------------------------- účet */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 8px; }
.login { max-width: 440px; margin: 6vh auto 0; text-align: center; }
.login .logo { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.login p { color: var(--muted); margin: 8px 0 18px; }
.field { display: grid; gap: 6px; margin: 14px 0; font-weight: 500; font-size: 14.5px; text-align: left; }
.field input { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; font-size: 17px; min-height: 54px; outline: none; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.code-input { letter-spacing: .45em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 24px !important; }
.login .btn { width: 100%; }
.dev-code { margin-top: 12px; font-size: 14px; background: #FEF3C7; color: #5B3B00; padding: 10px 12px; border-radius: 12px; }
.acc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--klub); color: #fff; font: 700 22px Ubuntu, sans-serif; flex: none; }
.acc-head b { display: block; word-break: break-all; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border: 0; }
.stack { display: grid; gap: 10px; margin-top: 14px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; }
.row-form input { flex: 1 1 180px; min-height: 46px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.row-form input[type=number] { flex: 0 0 90px; }


/* heslo s tlačítkem „oko“ */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 56px; box-sizing: border-box; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none;
  color: var(--muted); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--brand); }
.pw-eye svg { width: 22px; height: 22px; }
/* ---------------------------------------------------------------- mini přehrávač */
.mini {
  position: fixed; z-index: 39; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
  bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); height: var(--mini-h); max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 2px; padding: 0 8px 0 9px; border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, #0E1433 95%, transparent); color: #fff; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0 } }
.mini-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; background: none; border: 0; color: #fff; text-align: left; height: 100%; }
.mini-cover { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #2A2F66; flex: none; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-text { min-width: 0; }
.mini-text b, .mini-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text b { font-size: 14.5px; font-weight: 500; } .mini-text small { font-size: 12.5px; opacity: .72; }
.mini-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; flex: none; }
.mini-play { background: #fff; color: #0E1433; width: 44px; height: 44px; margin-left: 2px; }
.mini-play svg { width: 20px; height: 20px; }
.mini-bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: rgba(255,255,255,.14); border-radius: 3px; }
.mini-bar i { display: block; height: 100%; width: 0; background: #A5A8FF; border-radius: 3px; }

/* ---------------------------------------------------------------- velký přehrávač */
.player { position: fixed; inset: 0; z-index: 70; color: #fff; background: #0B0F2A; overflow: hidden;
  animation: sheetUp .32s cubic-bezier(.2,.8,.2,1); will-change: transform; }
@keyframes sheetUp { from { transform: translateY(100%) } }
.pl-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5) brightness(.55); transform: scale(1.2); }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,42,.2), rgba(11,15,42,.85)); pointer-events: none; }
.pl-inner {
  position: relative; z-index: 1; height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(10px + var(--safe-t)) calc(20px + var(--safe-r)) calc(18px + var(--safe-b)) calc(20px + var(--safe-l)); gap: 14px;
}
.pl-head { display: flex; align-items: center; justify-content: space-between; }
.pl-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; font-weight: 500; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; display: grid; place-items: center; flex: none; }
.pl-art { flex: 1 1 auto; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.pl-art img { width: min(100%, 420px); max-height: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #2A2F66; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.player.paused .pl-art img { transform: scale(.9); }
.pl-info h2 { font-size: clamp(19px, 5.4vw, 24px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-info p { opacity: .75; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-seek input { width: 100%; height: 30px; -webkit-appearance: none; appearance: none; background: none; margin: 0; touch-action: none; }
.pl-seek input::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); }
.pl-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -6.5px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.pl-seek input::-moz-range-track { height: 5px; border-radius: 5px; background: rgba(255,255,255,.22); }
.pl-seek input::-moz-range-progress { height: 5px; border-radius: 5px; background: #fff; }
.pl-seek input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.pl-times { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .72; font-variant-numeric: tabular-nums; }
.pl-ctrl { display: flex; align-items: center; justify-content: space-between; max-width: 400px; width: 100%; margin: 0 auto; }
.ctrl { width: 54px; height: 54px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 50%; }
.ctrl svg { width: 26px; height: 26px; } .ctrl.big svg { width: 36px; height: 36px; }
.ctrl:disabled { opacity: .35; }
.ctrl:active, .round-btn:active, .mini-btn:active, .opt:active { background: rgba(255,255,255,.16); }
.play-btn { width: 78px; height: 78px; border-radius: 50%; border: 0; background: #fff; color: #0B0F2A; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .12s; flex: none; }
.play-btn:active { transform: scale(.94); }
.play-btn svg { width: 32px; height: 32px; }
.play-btn.loading svg { opacity: 0; }
.play-btn.loading { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%234044EE' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 40px no-repeat; }
.pl-opts { display: flex; justify-content: space-around; gap: 8px; }
.opt { flex: 1; max-width: 120px; border: 0; background: none; color: #fff; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; border-radius: 14px; font-size: 12.5px; }
.opt b { font-size: 18px; line-height: 24px; } .opt span { opacity: .75; }
.opt.on span, .opt.on svg, .opt.on b { color: #B4B6FF; opacity: 1; }
@media (max-height: 660px) { .pl-inner { gap: 8px; } .play-btn { width: 64px; height: 64px; } .opt { min-height: 48px; } }
@media (orientation: landscape) and (max-height: 540px) {
  .pl-inner { max-width: 900px; display: grid; grid-template-columns: minmax(150px, 42vh) 1fr; grid-template-rows: auto 1fr auto auto auto auto;
    column-gap: 28px; row-gap: 6px; }
  .pl-head { grid-column: 1 / -1; } .pl-art { grid-row: 2 / 7; } .pl-info, .pl-seek, .pl-ctrl, .pl-opts { grid-column: 2; }
  .pl-info { align-self: end; }
}

/* ---------------------------------------------------------------- spodní panel (sheet) */
.sheet-wrap { position: fixed; inset: 0; z-index: 95; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,8,22,.5); animation: fade .2s; }
@keyframes fade { from { opacity: 0 } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 84vh; max-width: 640px; margin: 0 auto; overflow: auto;
  background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0;
  padding: 8px calc(18px + var(--safe-r)) calc(18px + var(--safe-b)) calc(18px + var(--safe-l));
  animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); overscroll-behavior: contain;
}
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 14px; }
.sheet h3 { margin-bottom: 10px; }
.opt-list { list-style: none; margin: 0; padding: 0; }
.opt-list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 6px;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 16px; }
.opt-list button > span:first-child { flex: 1; min-width: 0; }
.opt-list button[aria-checked="true"] { color: var(--brand); font-weight: 700; }
.opt-list li:last-child button { border: 0; }
.opt-list .sub { color: var(--muted); font-size: 13.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.theme-row button { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); font: 700 17px Georgia, serif; }
.theme-row button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.size-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.size-row input { flex: 1; accent-color: var(--brand); height: 32px; }
.size-row .a1 { font-size: 14px; } .size-row .a2 { font-size: 22px; }

/* ---------------------------------------------------------------- čtečka */
.reader { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #FFFFFF; color: #1A1A1A; overflow: hidden;
  animation: fade .2s; --rd-line: rgba(0,0,0,.08); }
.reader[data-theme="sepia"] { background: #F5EDDB; color: #3B2F1E; --rd-line: rgba(59,47,30,.12); }
.reader[data-theme="dark"] { background: #111318; color: #D9DAE0; --rd-line: rgba(255,255,255,.08); }
.reader .round-btn { background: transparent; }
.reader .round-btn:active { background: var(--rd-line); }
.rd-top { display: flex; align-items: center; gap: 4px; padding: calc(6px + var(--safe-t)) calc(8px + var(--safe-r)) 6px calc(8px + var(--safe-l));
  border-bottom: 1px solid var(--rd-line); transition: transform .25s, opacity .25s; background: inherit; position: relative; z-index: 3; }
.rd-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 15.5px Ubuntu, sans-serif; text-align: center; }
.rd-area { flex: 1; min-height: 0; width: min(100%, 780px); margin: 0 auto; overflow: hidden; position: relative;
  padding: 0 calc(4px + var(--safe-r)) 0 calc(4px + var(--safe-l)); }
.rd-bottom { display: flex; align-items: center; gap: 12px; padding: 8px calc(20px + var(--safe-r)) calc(10px + var(--safe-b)) calc(20px + var(--safe-l));
  font-size: 12.5px; opacity: .75; transition: opacity .25s; font-variant-numeric: tabular-nums; }
.rd-prog { flex: 1; height: 3px; border-radius: 3px; background: var(--rd-line); overflow: hidden; }
.rd-prog i { display: block; height: 100%; width: 0; background: var(--brand); }
.reader.immersive .rd-top { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.reader.immersive .rd-bottom { opacity: .35; }
.rd-msg { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(86vw, 360px); text-align: center; padding: 22px;
  border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); z-index: 5; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------------------------------------------------------------- toasty */
.toasts { position: fixed; left: 0; right: 0; z-index: 100; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.has-mini .toasts { bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 24px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; max-width: min(92vw, 460px);
  box-shadow: var(--shadow-lg); animation: rise .2s ease; }

@media (hover: hover) {
  .card:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .btn:hover { filter: brightness(1.08); }
  .chip:hover { border-color: var(--muted); }
  .row { scrollbar-width: thin; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- offline, oblíbené, záložky */
.offline-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: calc(6px + var(--safe-t)) 12px 6px; background: #1F2937; color: #fff; font-size: 13.5px; }
.offline-bar svg { width: 18px; height: 18px; }
body:has(.offline-bar:not([hidden])) .top { top: 0; }
.dt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.icon-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--text); }
.icon-pill svg { width: 20px; height: 20px; }
.icon-pill.on { color: #E11D48; border-color: color-mix(in srgb, #E11D48 40%, var(--line)); }
.icon-pill.done { color: var(--ok); }
.icon-pill .prog { font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .dt-actions { justify-content: flex-start; } }
.bm-list { list-style: none; margin: 0 0 14px; padding: 0; }
.bm-list li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.bm-list li > button:first-child { flex: 1; min-width: 0; text-align: left; background: none; border: 0; min-height: 54px; padding: 8px 6px; display: grid; }
.bm-list b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-list small { color: var(--muted); font-size: 13px; }
.bm-list .del { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.storage { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.card .dl-badge { position: absolute; z-index: 2; right: 7px; top: 7px; width: 22px; height: 22px; color: var(--ok); background: #fff; border-radius: 50%; display: grid; place-items: center; }
.card .dl-badge svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- statistiky, hodnocení, zkušební období */
.goal-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 700 13px Ubuntu, sans-serif; }
.ring.big { width: 110px; height: 110px; } .ring.big span { width: 88px; height: 88px; font-size: 20px; line-height: 1.1; text-align: center; }
.ring.big small { display: block; font: 500 11px Roboto, sans-serif; color: var(--muted); }
.goal-card b { display: block; } .goal-card small { color: var(--muted); }
.streak { display: inline-flex; align-items: center; gap: 4px; color: #EA580C; font-weight: 700; margin-left: auto; font-size: 15px; }
.streak svg { width: 20px; height: 20px; }
.stats-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; margin: 18px 0 6px; }
.week div { display: grid; gap: 6px; justify-items: center; align-self: end; font-size: 12px; color: var(--muted); }
.week i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--brand) 30%, var(--surface-2)); min-height: 4px; }
.week i.hit { background: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: var(--surface-2); border-radius: 14px; padding: 12px; text-align: center; }
.kpi b { display: block; font: 700 20px Ubuntu, sans-serif; } .kpi small { color: var(--muted); font-size: 12.5px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 40px; height: 40px; border: 0; background: none; color: #F59E0B; display: grid; place-items: center; border-radius: 50%; }
.stars button svg { width: 28px; height: 28px; }
.rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating-avg { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.rating-avg svg { width: 18px; height: 18px; color: #F59E0B; }
.trial-note { font-size: 13px; opacity: .85; }

/* ---------------------------------------------------------------- profily */
.top-right { display: flex; align-items: center; gap: 10px; }
.prof-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); padding: 0; color: #fff; font: 700 15px Ubuntu, sans-serif;
  display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.pav { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 26px Ubuntu, sans-serif; position: relative; }
.pav .kid { position: absolute; right: -4px; bottom: -4px; font-size: 11px; font-weight: 700; background: #FACC15; color: #422006; border-radius: 99px; padding: 2px 6px; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px; margin: 6px 0 12px; }
.prof { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 8px 4px; border-radius: 16px; font-size: 14px; }
.prof[aria-current="true"] .pav { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.prof span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof.add .pav { background: var(--surface-2); color: var(--muted); border: 2px dashed var(--line); }
.kids-hello { background: linear-gradient(135deg, #FDE68A, #FCA5A5 60%, #C4B5FD); color: #3B0764; border-radius: var(--r-l); padding: 20px; margin-bottom: 22px; }
.kids-hello h1 { font-size: clamp(24px, 7vw, 32px); }

/* ---------------------------------------------------------------- podcasty */
.pcard { display: block; text-decoration: none; color: inherit; min-width: 0; }
.pcover { position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.pcover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.pcover .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px; color: #fff; font: 700 13px/1.2 Ubuntu, sans-serif;
  background: linear-gradient(160deg, var(--c1, #4044EE), var(--c2, #1B1F5E)); }
.pcard .t { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .a { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent); padding: 3px 8px; border-radius: 99px; }
.eps { list-style: none; margin: 0; padding: 0; }
.eps li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.eps .ep-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.eps .ep-main { flex: 1; min-width: 0; }
.eps .ep-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 15px; line-height: 1.3; }
.eps .ep-main small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 3px; }
.eps .ep-main .bar { margin-top: 6px; max-width: 160px; }
.eps .ep-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.eps .ep-play svg { width: 20px; height: 20px; }
.eps li.done .ep-main b { color: var(--muted); }
.pod-head { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: end; margin: 6px 0 14px; }
.pod-head .pcover { border-radius: 18px; box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .pod-head { grid-template-columns: 220px 1fr; gap: 26px; } }
.remote-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.remote-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.remote-item div { flex: 1; min-width: 0; } .remote-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-item small { color: var(--muted); }


/* Předplacené podcasty (osobní RSS z Herohero, Forendors, Opinio…) */
.paid-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.paid-pill svg { width: 12px; height: 12px; }
.paid-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0 0 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.paid-offer b { display: block; }
.paid-offer small { color: var(--muted); display: block; margin-top: 2px; }
.paid-offer .btn { flex: none; }
.eps .ep-main[role="button"] { cursor: pointer; }
/* ---------------------------------------------------------------- knihy z epizody, partneři */
.ep-books { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.ep-book { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 4px; border-radius: 99px;
  background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 500; }
.ep-book img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; }
.ep-book span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.promo-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.promo-banner { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 14px; margin: 0 0 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.promo-banner img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.promo-banner b { display: block; } .promo-banner small { color: var(--muted); }
.admin-form { display: grid; gap: 8px; }
.admin-form input, .admin-form select { min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.admin-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------------------------------------------------------------- registrace */
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14.5px; line-height: 1.45; margin: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--brand); }
.check a { color: var(--brand); }

.lang-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; margin-right: 6px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); vertical-align: 2px; }

/* ---------------------------------------------------------------- stažení epizody */
.eps .ep-dl { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; cursor: pointer; }
.eps .ep-dl svg { width: 20px; height: 20px; }
.eps .ep-dl.on { color: var(--brand); }
.eps .ep-dl.busy { animation: epdl 1.2s ease-in-out infinite; color: var(--brand); }
@keyframes epdl { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .eps .ep-dl.busy { animation: none; } }

/* ---------------------------------------------------------------- detail epizody */
.eps a.ep-main { color: inherit; text-decoration: none; }
.ep-hero { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; margin: 6px 0 14px; }
.ep-cover { width: 120px; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.ep-head h1 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; text-wrap: balance; }
.ep-pod { color: var(--brand); font-weight: 500; text-decoration: none; }
.ep-meta { font-size: 14px; margin-top: 4px; }
.ep-actions { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.ep-tools { display: flex; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--brand); }
.ep-bigplay { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); }
.ep-bigplay svg { width: 28px; height: 28px; }
.list-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; margin-top: 8px; }
.list-link svg { width: 20px; height: 20px; }
.icon-btn.busy { color: var(--brand); animation: epdl 1.2s ease-in-out infinite; }
@media (min-width: 760px) { .ep-hero { grid-template-columns: 180px 1fr; } .ep-cover { width: 180px; } }

/* ---------------------------------------------------------------- přihlášení přes Google */
.g-box { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 4px 0 14px; }
.g-box .or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.g-box .or::before, .g-box .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-consent { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }

/* ---------------------------------------------------------------- našeptávač */
.suggest-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li.on { background: var(--surface-2); }
.suggest img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-2); }
.suggest .sug-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.suggest .sug-ic svg { width: 18px; height: 18px; }
.suggest .sug-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest .sug-t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .sug-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .sug-k { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; flex: none; }
.suggest .sug-fix { color: var(--muted); font-size: 14px; }
.suggest .sug-fix b { color: var(--brand); margin: 0 3px; }
.fix-note { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.fix-note b { color: var(--text); }

/* ---------------------------------------------------------------- cíle po druzích obsahu */
.goal-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface-2); border-radius: 14px; padding: 12px 6px; }
.goal-ring .ring { width: 64px; height: 64px; }
.goal-ring .ring span { width: 50px; height: 50px; }
.goal-ring .ring svg { width: 22px; height: 22px; }
.goal-ring b { font-size: 14px; } .goal-ring small { color: var(--muted); font-size: 12px; }
.goal-ring.k-audio .ring { background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface) 0); }
.goal-ring.k-ebook .ring { background: conic-gradient(#0EA5E9 calc(var(--p) * 1%), var(--surface) 0); }
.goal-ring.k-podcast .ring { background: conic-gradient(#F59E0B calc(var(--p) * 1%), var(--surface) 0); }
.goal-ring.off { opacity: .6; }
.week.stacked .stack { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; gap: 2px; min-height: 4px; }
.week.stacked .stack i { width: 100%; border-radius: 4px; min-height: 3px; }
.k-audio i, .week .stack i.k-audio { background: var(--brand); }
.k-ebook i, .week .stack i.k-ebook { background: #0EA5E9; }
.k-podcast i, .week .stack i.k-podcast { background: #F59E0B; }
.week .stack i.k-rest { background: color-mix(in srgb, var(--brand) 30%, var(--surface-2)); }
.week .stack i.k-empty { background: var(--surface-2); height: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.goal-set { display: grid; gap: 6px; margin-top: 10px; }
.goal-set > span { font-size: 14px; font-weight: 500; }
.goal-set .chips { flex-wrap: wrap; }

/* denní cíl – táhlo */
.goal-head { display: flex; justify-content: space-between; align-items: baseline; }
.goal-val { color: var(--brand); font-size: 15px; font-variant-numeric: tabular-nums; }
.goal-set input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; touch-action: pan-y; }
.goal-set input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--surface-2) var(--fill, 0%)); }
.goal-set input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--surface-2); }
.goal-set input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--brand); }
.goal-set input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.goal-set input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.goal-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
/* ---------------------------------------------------------------- rodičovská omezení */
.time-row { display: flex; gap: 12px; margin-top: 8px; }
.time-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1; }
.time-row input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); font: inherit; }

/* ---------------------------------------------------------------- obsah pro děti */
.kid-rules { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.kid-rule { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.kid-rule .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kid-rule .t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kid-rule .t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kid-rule .icon-btn { width: 34px; height: 34px; }
.kid-rule .pill.ok { background: color-mix(in srgb, #16A34A 18%, transparent); color: #16A34A; }
.kid-rule .pill.no { background: color-mix(in srgb, #DC2626 18%, transparent); color: #DC2626; }
.kid-item { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ================================================================ motion design (jen transform/opacity → běží na GPU)
   – lite (slabý telefon, úspora dat, omezené animace v systému) = vše vypnuto */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* nová stránka najede */
.view-in { animation: viewIn .55s var(--ease-out) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(26px) scale(.985); } }

/* police a karty: postupné odhalení (první řádky, zbytek hned) */
.view-in .shelf, .view-in .panel { animation: rise .5s var(--ease-out) both; }
.view-in .shelf:nth-of-type(2), .view-in .panel:nth-of-type(2) { animation-delay: .05s; }
.view-in .shelf:nth-of-type(3), .view-in .panel:nth-of-type(3) { animation-delay: .1s; }
.view-in .shelf:nth-of-type(4), .view-in .panel:nth-of-type(4) { animation-delay: .15s; }
.view-in .row > .card, .view-in .grid > .card, .view-in .row > .pcard, .view-in .grid > .pcard { animation: cardIn .8s var(--ease-out) both; }
.view-in :is(.row, .grid) > :nth-child(2) { animation-delay: 0.07s; }
.view-in :is(.row, .grid) > :nth-child(3) { animation-delay: 0.14s; }
.view-in :is(.row, .grid) > :nth-child(4) { animation-delay: 0.21s; }
.view-in :is(.row, .grid) > :nth-child(5) { animation-delay: 0.28s; }
.view-in :is(.row, .grid) > :nth-child(6) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.9) rotate(-2deg); } }
.view-in .eps li { animation: rise .45s var(--ease-out) both; }
.view-in .eps li:nth-child(2) { animation-delay: .04s; } .view-in .eps li:nth-child(3) { animation-delay: .08s; }
.view-in .eps li:nth-child(4) { animation-delay: .12s; } .view-in .eps li:nth-child(5) { animation-delay: .16s; }

/* kinetická typografie pozdravu */
.kinetic .kw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.kinetic .kw > span { display: inline-block; animation: wordUp .9s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 80ms); }
@keyframes wordUp { from { transform: translateY(110%) rotate(6deg); opacity: 0; } }
.hello p { animation: rise .8s var(--ease-out) .35s both; }

/* „kamera": obálka v detailu se při posunu stránky jemně vzdaluje (scroll-driven, bez JS) */
@supports (animation-timeline: scroll()) {
  html:not(.lite) .dt-main > .cover { animation: heroCam linear both; animation-timeline: scroll(root); animation-range: 0 320px; }
  html:not(.lite) .dt-bg { animation: heroBg linear both; animation-timeline: scroll(root); animation-range: 0 400px; }
}
@keyframes heroCam { to { transform: translateY(40px) scale(.9); opacity: .55; } }
@keyframes heroBg { to { transform: translateY(80px) scale(1.12); } }
.dt-main.from-hero > .cover { animation: none; }
.cover.hint { width: min(56vw, 240px); box-shadow: var(--shadow-lg); border-radius: 18px; }

/* přelet obálky z karty do detailu (View Transitions) */
::view-transition-group(hero-cover) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(hero-cover), ::view-transition-new(hero-cover) { animation-duration: .7s; }
::view-transition-old(root) { animation: .3s ease both vtOut; }
::view-transition-new(root) { animation: .45s ease .1s both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* kroužky cílů se „natočí" */
.ring { animation: ringFill 1.1s var(--ease-out) both; }
@keyframes ringFill { from { --p: 0; } }

/* mikrointerakce */
.btn, .icon-pill, .chip, .ep-play, .ep-bigplay { transition: transform .18s var(--ease-spring), background-color .2s, color .2s; }
.btn:active, .icon-pill:active, .chip:active, .ep-play:active, .ep-bigplay:active { transform: scale(.94); }
.icon-pill.pop svg { animation: pop .45s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.45) rotate(-8deg); } }
.tabs a svg { transition: transform .25s var(--ease-spring); }
.tabs a.on svg { transform: translateY(-2px) scale(1.08); }
#mini:not([hidden]) { animation: miniIn .4s var(--ease-spring) both; }
@keyframes miniIn { from { transform: translateY(120%); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }

/* lite: nic se nehýbe */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; transition-duration: .01ms !important; }
html.lite ::view-transition-group(*), html.lite ::view-transition-old(*), html.lite ::view-transition-new(*) { animation: none !important; }

/* výraznější motion: nadpisy polic vyjedou zleva, karta Klubu se „nadechne" a přejede po ní odlesk */
.view-in .shelf-head h2 { animation: slideIn .7s var(--ease-out) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-28px); } }
.view-in .klub-card { animation: klubIn .9s var(--ease-spring) .1s both; }
@keyframes klubIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.klub-card::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; pointer-events: none; border-radius: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: translateX(-120%) skewX(-12deg);
  animation: sheen 6s ease-in-out 1.2s infinite; }
.klub-card::after { animation: orb 7s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-30px, 26px) scale(1.25); } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%) skewX(-12deg); } 100% { transform: translateX(420%) skewX(-12deg); } }
.view-in .goal-card { animation: klubIn .8s var(--ease-spring) both; }

/* ---------------------------------------------------------------- hudba ke čtení */
.music-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 42vh; overflow-y: auto; }
.music-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.music-list li:hover, .music-list li.on { background: var(--surface-2); }
.music-list .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--brand); }
.music-list li.on .ic { background: var(--brand); color: #fff; }
.music-list .ic svg { width: 16px; height: 16px; }
.music-list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.music-list .t b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-list .t small, .music-list .d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vol-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.vol-row input { flex: 1; accent-color: var(--brand); }

/* detail knihy: text a tlačítka se odhalí postupně, až obálka „přistane" */
.view-in .dt-main > div:not(.cover) > *, .dt-main.from-hero > div:not(.cover) > * { animation: rise .6s var(--ease-out) both; }
.dt-main > div:not(.cover) > :nth-child(1) { animation-delay: .25s; } .dt-main > div:not(.cover) > :nth-child(2) { animation-delay: .33s; }
.dt-main > div:not(.cover) > :nth-child(3) { animation-delay: .41s; } .dt-main > div:not(.cover) > :nth-child(4) { animation-delay: .49s; }
.dt-main > div:not(.cover) > :nth-child(5) { animation-delay: .57s; } .dt-main > div:not(.cover) > :nth-child(6) { animation-delay: .65s; }
.view-in .dt-hero ~ .section { animation: rise .7s var(--ease-out) .5s both; }
.view-in .pod-head > div:not(.pcover) > * { animation: rise .6s var(--ease-out) both; }
.pod-head > div:not(.pcover) > :nth-child(2) { animation-delay: .08s; } .pod-head > div:not(.pcover) > :nth-child(3) { animation-delay: .16s; } .pod-head > div:not(.pcover) > :nth-child(4) { animation-delay: .24s; }
.view-in .pod-head .pcover { animation: cardIn .8s var(--ease-out) both; }

/* obrázky: prolnutí po načtení */
img.fi { opacity: 0; transition: opacity .5s ease; }
img.fi.ok { opacity: 1; }
img.fi.instant { transition: none; }

.dt-main.from-hero ~ .dt-bg, .dt-hero:has(.from-hero) .dt-bg { animation: fade .8s ease both; }
@supports (animation-timeline: scroll()) {
  html:not(.lite) .dt-hero:has(.from-hero) .dt-bg { animation: fade .8s ease both, heroBg linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 400px; }
}
/* ---------------------------------------------------------------- hlášení chyb a nápadů */
.field textarea { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px 14px;
  font: 16px/1.45 inherit; font-family: inherit; resize: vertical; min-height: 120px; outline: none; }
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.fb-attach { display: grid; gap: 6px; }
.fb-attach small { font-size: 12.5px; text-align: center; }
.fb-shot { position: relative; justify-self: center; margin-top: 6px; }
.fb-shot img { max-height: 220px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.fb-shot .icon-pill { position: absolute; top: 6px; right: 6px; }
/* ---------------------------------------------------------------- počítač (široká obrazovka): navigace v postranním panelu */
.tabs a.side-brand { display: none; }
@media (min-width: 1024px) {
  :root { --side-w: 236px; }
  body { padding: 0 0 28px var(--side-w); }
  body.has-mini { padding-bottom: calc(var(--mini-h) + 40px); }
  .top { padding-left: 32px; padding-right: 32px; }
  .top .brand { display: none; }
  .tabs {
    top: 0; bottom: 0; right: auto; width: var(--side-w); height: auto; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 18px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .tabs a.side-brand { display: flex; flex: none; max-width: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; padding: 4px 10px 22px; color: var(--text); text-decoration: none;
    font: 700 23px Ubuntu, sans-serif; }
  .side-brand img { border-radius: 9px; }
  .tabs a:not(.side-brand) { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 14px; height: 46px;
    padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
  .tabs a:not(.side-brand) svg { width: 22px; height: 22px; }
  .tabs a:not(.side-brand):hover { background: var(--surface-2); color: var(--text); }
  .tabs a.on::before { top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }
  .tabs a.on svg { transform: none; }
  main { max-width: 1320px; padding: 10px 32px 16px; }
  .mini { left: calc(var(--side-w) + 24px); right: 24px; bottom: 16px; max-width: 880px; }
  .sheet { left: var(--side-w); }
  .row, .grid { scrollbar-width: thin; }
  a.card:hover .cover, a.pcard:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  a.card .cover, a.pcard img { transition: transform .2s ease, box-shadow .2s ease; }
}

/* Počítač: žánry jako klidná mřížka stejných dlaždic (název + počet titulů), barva jen jako proužek vlevo */
@media (min-width: 1024px) {
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
  .cat {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 14px 13px 22px; border: 1px solid var(--line); border-radius: 12px; text-align: left;
    background: var(--surface); color: var(--text); box-shadow: none; font: 500 14.5px/1.3 Roboto, system-ui, sans-serif;
    transition: border-color .15s, background .15s;
  }
  .cat::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px;
    background: linear-gradient(180deg, var(--c1), var(--c2)); }
  .cat:hover { border-color: var(--brand-2); background: var(--surface-2); }
  .cat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-n { display: inline; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
}
