/* Databáze – tmavé „promítací“ rozhraní. Jedna teplá barva světla (jantar → korál), sklo, klid. */
:root {
  --bg: #0a0a0c; --ink: #f4f2ed; --muted: #9b9890; --faint: #5d5b56;
  --glass: rgba(255, 255, 255, .045); --glass2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .18);
  --accent: #ffb347; --grad: linear-gradient(120deg, #ffc65e, #ff7a5c);
  --hot: #ffb347; --cold: #74bcff; --ok: #6fd392; --bad: #ff7f76;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", system-ui, sans-serif;
  --body: Inter, "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2c2c30 transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70vw 46vh at 12% -12%, rgba(255, 170, 70, .15), transparent 70%),
    radial-gradient(55vw 42vh at 100% -6%, rgba(120, 110, 255, .11), transparent 70%); }
::selection { background: rgba(255, 179, 71, .35); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 20px; margin: 40px 0 14px; font-weight: 650; }
h3 { font-size: 16px; margin: 26px 0 6px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; flex: none; }

/* ---- hlavička ---- */
header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px); background: rgba(10, 10, 12, .72); backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -.03em; }
.logo i { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px 2px rgba(255, 150, 80, .7); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 26px 6px rgba(255, 150, 80, .35); transform: scale(.88); } }
#nav { display: flex; justify-content: flex-end; gap: 2px; }
#nav a, .dock a { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; color: var(--muted);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
#nav a:hover { color: var(--ink); }
#nav a.on { color: var(--ink); background: var(--glass2); }
.badge { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #1c1206; font: 700 11px/18px var(--body); text-align: center; }
.dock { display: none; }

/* ---- přepínače s posuvným podkladem ---- */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); max-width: 100%; }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--glass2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .2s; pointer-events: none; }
.seg button { position: relative; border: 0; background: none; padding: 7px 17px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color .25s; }
.seg button:hover { color: var(--ink); background: none; }
.seg button.on { color: var(--ink); background: none; }
.sections .pill { background: var(--grad); box-shadow: 0 6px 22px -8px rgba(255, 140, 70, .8); }
.sections button.on { color: #1c1206; font-weight: 600; }
main { position: relative; isolation: isolate; max-width: 1720px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 56px) 130px; }
#view.enter { animation: enter .45s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---- ovládací prvky ---- */
button, .btn { font: 500 14px/1.3 var(--body); cursor: pointer; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, transform .15s, filter .2s; }
button:hover, .btn:hover { background: var(--glass2); border-color: var(--line2); }
button:active { transform: scale(.97); }
button.primary { background: var(--grad); color: #1c1206; border-color: transparent; font-weight: 600; box-shadow: 0 8px 26px -12px rgba(255, 140, 70, .9); }
button.primary:hover { filter: brightness(1.08); }
button.on { background: var(--ink); color: #111; border-color: transparent; }
button.sm { padding: 5px 12px; font-size: 13px; border-radius: 9px; }
button.danger:hover { border-color: var(--bad); color: var(--bad); }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: 15px var(--body); padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--ink); min-width: 0; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: rgba(255, 179, 71, .6); box-shadow: 0 0 0 4px rgba(255, 179, 71, .1); }
select option { background: #18181b; color: var(--ink); }
input[type=checkbox] { width: 16px; height: 16px; vertical-align: -3px; accent-color: var(--accent); }
label { color: var(--muted); font-size: 12.5px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 16px; }
.fields > div { display: flex; flex-direction: column; gap: 5px; }
.fields .wide { grid-column: 1 / -1; }
.row2 { display: flex; gap: 6px; }
.row2 > * { flex: 1; }
.filters-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--glass); transition: all .2s; }
a.chip:hover, label.chip:hover { color: var(--ink); border-color: var(--line2); }
.chip.star { color: var(--accent); border-color: rgba(255, 179, 71, .35); font-weight: 600; }
.chip a { margin-left: 4px; opacity: .6; }
.chip a:hover { opacity: 1; color: var(--bad); }
label.chip { cursor: pointer; }
label.chip input { display: none; }
label.chip:has(input:checked) { background: var(--grad); color: #1c1206; border-color: transparent; font-weight: 600; }

/* ---- hledání + záložky ---- */
#cat { max-width: 880px; margin: 6px auto 0; }
.search { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, background .25s; }
.search:focus-within { border-color: rgba(255, 179, 71, .55); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 5px rgba(255, 179, 71, .09), 0 20px 60px -30px rgba(255, 150, 70, .6); }
.search > svg { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; border: 0; background: none; padding: 9px 0; font-size: 17px; box-shadow: none; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search button { display: flex; align-items: center; gap: 7px; border-radius: 14px; padding: 10px 14px; color: var(--muted); }
.search button.on { background: var(--glass2); color: var(--accent); border-color: rgba(255, 179, 71, .35); }
#fcount:empty { display: none; }
#fcount { color: var(--accent); }
.filters { margin-top: 12px; animation: enter .3s var(--ease); }
.tabs { display: flex; width: max-content; margin: 22px auto 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .sections::-webkit-scrollbar { display: none; }
.colhead { margin: 30px 0 0; }
.colhead a { color: var(--muted); font-size: 14px; }
.colhead a:hover { color: var(--ink); }
.colhead h1 { margin-top: 8px; }
.meta { display: flex; justify-content: space-between; align-items: center; min-height: 34px; margin: 26px 0 14px; color: var(--muted); font-size: 13px; gap: 12px; }
.meta select { padding: 5px 10px; font-size: 13px; }

/* ---- zeď obálek ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 30px 22px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 0; color: var(--muted); }
.card { display: block; position: relative; min-width: 0; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.poster { position: relative; z-index: 1; aspect-ratio: 2 / 3; border-radius: 15px; overflow: hidden; background: #151517;
  box-shadow: 0 10px 28px -14px #000, inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.poster img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s, transform .6s var(--ease); }
.poster img.ok { opacity: 1; }
.noposter { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; color: var(--muted);
  font: 600 15px/1.25 var(--display); background: linear-gradient(160deg, #1b1b1f, #111113); }
.cap { padding: 11px 2px 0; line-height: 1.3; }
.cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; }
.cap span { color: var(--muted); font-size: 12.5px; }
.card.skip .poster img { opacity: .32; filter: grayscale(1); }
.card.skip .cap { opacity: .45; }
.divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin: 26px 0 0; color: var(--faint); font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shade { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: space-between; padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .35)); opacity: 0; transition: opacity .3s; }
.quick { display: flex; justify-content: flex-end; gap: 6px; }
.quick span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 20, 22, .7); border: 1px solid var(--line2);
  backdrop-filter: blur(8px); font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.quick span:hover { transform: scale(1.14); background: rgba(60, 60, 64, .8); }
.quick span.on { background: var(--grad); color: #1c1206; border-color: transparent; }
.facts { display: flex; flex-wrap: wrap; gap: 2px 9px; font-size: 12px; color: #d8d5cd; line-height: 1.4; }
.facts b { color: var(--accent); }
.facts .ov { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; width: 100%; }
.where, .flag { position: absolute; z-index: 2; font: 600 10.5px/1 var(--body); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 8px;
  background: rgba(12, 12, 14, .78); backdrop-filter: blur(8px); transition: opacity .25s; }
.where { top: 9px; left: 9px; color: var(--cold); }
.where.hot { color: var(--hot); }
.flag { bottom: 9px; left: 9px; color: #e9e6df; }
.flag.plan { background: var(--grad); color: #1c1206; }
.flag.have { color: var(--ok); }
@media (hover: hover) {
  .shade { display: flex; }
  .card:hover .poster { transform: translateY(-7px) scale(1.03); box-shadow: 0 30px 60px -22px #000, 0 0 0 1px var(--line2), 0 0 50px -18px rgba(255, 160, 80, .45); }
  .card:hover .poster img { transform: scale(1.06); }
  .card:hover .shade { opacity: 1; }
  .card:hover .flag { opacity: 0; }
}
.card.stack { margin-top: 0; }
.card.stack::before, .card.stack::after { content: ""; position: absolute; aspect-ratio: 2 / 3; border-radius: 15px; background: #1a1a1d; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease); }
.card.stack::before { left: 0; right: 0; top: 0; transform: rotate(-4deg) scale(.94); transform-origin: bottom left; }
.card.stack::after { left: 0; right: 0; top: 0; transform: rotate(4deg) scale(.94); transform-origin: bottom right; }
@media (hover: hover) { .card.stack:hover::before { transform: rotate(-8deg) scale(.94) translateY(-6px); } .card.stack:hover::after { transform: rotate(8deg) scale(.94) translateY(-6px); } }
.wish { width: 100%; margin-top: 9px; padding: 7px 8px; font-size: 13px; }
.wish:not(:disabled):hover { background: var(--grad); color: #1c1206; border-color: transparent; }
.wish:disabled { color: var(--ok); opacity: 1; }

/* ---- detail titulu ---- */
.backdrop { position: absolute; z-index: -1; top: -80px; left: calc(50% - 50vw); width: 100vw; height: 700px; background: center 20% / cover no-repeat;
  filter: blur(80px) saturate(1.5); opacity: .42; pointer-events: none; -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); }
.back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--ink); }
.title { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(22px, 4vw, 56px); align-items: start; }
.title .poster { box-shadow: 0 40px 80px -30px #000, inset 0 0 0 1px var(--line); border-radius: 20px; }
.title h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 750; letter-spacing: -.035em; line-height: 1; margin-bottom: 14px; }
.sub { color: var(--muted); margin-bottom: 18px; }
.sub i { font-style: normal; margin: 0 9px; color: var(--faint); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.actions button { padding: 11px 20px; border-radius: 999px; }
.actions button.on { background: var(--grad); color: #1c1206; font-weight: 600; box-shadow: 0 8px 26px -12px rgba(255, 140, 70, .9); }
.overview { max-width: 72ch; margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: #dedbd3; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 22px; margin: 22px 0; max-width: 90ch; }
dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
dd { margin: 0; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.hot { color: var(--hot); border-color: rgba(255, 179, 71, .4); background: rgba(255, 179, 71, .08); }
.tag.cold { color: var(--cold); border-color: rgba(116, 188, 255, .4); background: rgba(116, 188, 255, .08); }
.tag.bad { color: var(--bad); border-color: rgba(255, 127, 118, .4); background: rgba(255, 127, 118, .07); }
.tag.worst { background: var(--bad); color: #1a0806; border-color: transparent; }
.tag.ok { color: var(--ok); border-color: rgba(111, 211, 146, .4); background: rgba(111, 211, 146, .07); }
.box { border: 1px solid var(--line); background: var(--glass); border-radius: 16px; padding: 14px 16px; margin: 0 0 6px; max-width: 90ch; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.box > span { flex: 1 1 240px; }

/* ---- tabulky ---- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--faint); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: rgba(255, 255, 255, .02); }
td.r, th.r { text-align: right; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
td .path { color: var(--faint); font-size: 12px; word-break: break-all; }
td input, td select { padding: 6px 10px; font-size: 14px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 13px 2px; font-weight: 600; }
details table { margin-bottom: 10px; }
.thumb { width: 40px; height: 60px; border-radius: 7px; object-fit: cover; background: var(--glass2); display: block; }
img.thumb { opacity: 1; }
pre.spec { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 0 0 8px; }
pre.spec b { color: var(--accent); }
.progress { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--grad); }

/* ---- správce knihovny ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease); }
a.tile:hover { border-color: var(--line2); background: var(--glass2); transform: translateY(-2px); }
.tile b { font: 700 30px/1.1 var(--display); letter-spacing: -.03em; }
.tile span { font-size: 13.5px; color: #d6d3cb; }
.tile small { font-size: 12px; color: var(--muted); }
.tile.warn b { color: var(--accent); }
.tile.bad b { color: var(--bad); }
.tile.zero { opacity: .5; }
.tile.zero b { color: var(--ok); }
.tiles.big .tile b { font-size: 34px; }
.tile .tag { font-style: normal; margin-left: 4px; }
.intake { display: flex; gap: 18px; align-items: flex-start; }
.intake .body { flex: 1; min-width: 0; }
.intake h3 { margin: 6px 0 2px; font-size: 19px; }
.intake .path { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.intake .target { margin: 10px 0; padding: 9px 12px; border-radius: 10px; background: rgba(111, 211, 146, .08); border: 1px solid rgba(111, 211, 146, .3); color: var(--ok); font-size: 13.5px; word-break: break-all; }
.intake .target small { display: block; margin-top: 4px; opacity: .8; }
.intake .target.cross { background: rgba(255, 179, 71, .08); border-color: rgba(255, 179, 71, .35); color: var(--accent); }
.intake .target.moving { background: var(--glass2); border-color: var(--line2); color: var(--ink); animation: breathe 2s ease-in-out infinite; box-shadow: none; }
.sumbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; position: sticky; top: 70px; z-index: 4; padding: 12px 16px; margin-bottom: 22px; border-radius: 16px;
  background: rgba(20, 20, 23, .86); border: 1px solid var(--line2); backdrop-filter: blur(16px); }
.sumbar .counts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 320px; }
.sumbar .counts a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sumbar .counts a b { color: var(--ink); margin-right: 4px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line2); position: relative; transition: background .2s; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.grouphead { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; scroll-margin-top: 150px; }
.grouphead h2 { margin: 0; }
.rec { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--glass); }
.rec .kicker { font: 600 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec h4 { margin: 6px 0 4px; font: 650 17px/1.25 var(--display); letter-spacing: -.01em; }
.rec .where { position: static; display: block; text-transform: none; letter-spacing: 0; font: 13px/1.5 var(--body); padding: 0; background: none; backdrop-filter: none; color: var(--ink); word-break: break-all; margin-top: 2px; }
.rec ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.rec li::before { content: "·"; display: inline-block; width: 16px; color: var(--muted); }
.rec li.good::before { content: "+"; color: var(--ok); font-weight: 700; }
.rec li.bad::before { content: "−"; color: var(--bad); font-weight: 700; }
.rec .effect { margin: 2px 0 6px; font-size: 13.5px; color: #d6d3cb; }
.rec dl.series { grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 13.5px; max-width: none; }
.rec dl.series dt { font-size: 12px; padding-top: 2px; }
.rec dl.series .path { color: var(--ink); font-size: 13px; }
.rec .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.rec.add { border-color: rgba(111, 211, 146, .4); background: rgba(111, 211, 146, .06); }
.rec.add h4, .rec.merge h4 { color: var(--ok); }
.rec.merge { border-color: rgba(111, 211, 146, .4); background: rgba(111, 211, 146, .06); }
.rec.replace { border-color: rgba(255, 179, 71, .5); background: rgba(255, 179, 71, .07); }
.rec.replace h4 { color: var(--accent); }
.rec.discard { border-color: rgba(255, 127, 118, .4); background: rgba(255, 127, 118, .05); }
.rec.discard h4 { color: var(--bad); }
.rec.confirm, .rec.decide { border-color: rgba(116, 188, 255, .4); background: rgba(116, 188, 255, .06); }
.rec.confirm h4, .rec.decide h4 { color: var(--cold); }
.compare > div.win { border-color: rgba(111, 211, 146, .5); box-shadow: inset 0 0 0 1px rgba(111, 211, 146, .2); }
.compare .head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
details.edit { border: 0; margin-top: 10px; }
details.edit summary { padding: 4px 0; font-weight: 500; font-size: 13px; color: var(--muted); }
details.edit[open] summary { color: var(--ink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; font-size: 13px; }
.compare > div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); line-height: 1.7; }
.intake .tools { margin: 12px 0 0; }
.intake .tools select, .intake .tools input { padding: 6px 10px; font-size: 14px; }
.ov3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; max-width: 80ch; }
.thumb.big { width: 92px; height: 138px; border-radius: 10px; flex: none; }
.row2.fix { flex: none; }
.row2.fix > * { flex: none; }
tr.acked td { opacity: .45; }
.bar > .seg { overflow-x: auto; scrollbar-width: none; }

/* ---- přihlášení, hlášky ---- */
.login { max-width: 340px; margin: 14vh auto 0; padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 26px; backdrop-filter: blur(20px); box-shadow: 0 40px 100px -40px #000; animation: enter .6s var(--ease); }
.login .logo { justify-content: center; font-size: 30px; margin-bottom: 14px; }
.login input, .login button { padding: 12px 14px; }
.err { color: var(--bad); font-size: 14px; min-height: 21px; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: 90vw; padding: 11px 18px; border-radius: 14px; z-index: 30;
  background: rgba(30, 30, 33, .92); border: 1px solid var(--line2); backdrop-filter: blur(14px); font-weight: 500; box-shadow: 0 20px 50px -20px #000; animation: enter .3s var(--ease); }
#toast.bad { border-color: var(--bad); color: var(--bad); }

/* ---- užší okna ---- */
@media (max-width: 1180px) { #nav a span { display: none; } #nav a.on span { display: inline; } }
@media (max-width: 760px) {
  header { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 12px 12px 10px; }
  .logo { font-size: 19px; }
  #nav { display: none; }
  .sections { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sections button { flex: 1; padding: 8px 10px; }
  .dock { display: flex; position: fixed; z-index: 20; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); gap: 2px; padding: 6px;
    border-radius: 24px; background: rgba(22, 22, 25, .82); border: 1px solid var(--line2); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 20px 50px -15px #000; max-width: calc(100vw - 16px); }
  .dock a { flex-direction: column; gap: 3px; padding: 8px 13px; border-radius: 18px; font-size: 10.5px; }
  .dock a span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; }
  .dock a.on { color: var(--ink); background: var(--glass2); }
  .dock .badge { position: absolute; top: 2px; right: 6px; }
  main { padding: 18px 12px 130px; }
  .search { padding: 5px 5px 5px 15px; border-radius: 17px; }
  .search input { font-size: 16px; }
  .search button span { display: none; }
  .tabs { width: auto; margin-top: 16px; }
  .tabs button { padding: 7px 14px; }
  .meta { margin: 18px 0 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .poster { border-radius: 11px; }
  .cap b { font-size: 12.5px; }
  .cap span { font-size: 11.5px; }
  .where, .flag { font-size: 9px; padding: 4px 6px; top: 6px; left: 6px; }
  .flag { top: auto; bottom: 6px; }
  .wish { font-size: 12px; padding: 6px 4px; }
  .title { grid-template-columns: 1fr; }
  .title .poster { max-width: 190px; }
  .actions button { flex: 1; padding: 11px 10px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
  .panel { padding: 16px; }
  .intake { gap: 12px; }
  .compare { grid-template-columns: 1fr; }
  .sumbar { position: static; padding: 10px 12px; }
  .rec .btns button { flex: 1; }
  .thumb.big { width: 58px; height: 87px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields > div[style] { grid-column: 1 / -1 !important; }
}
@media (max-width: 380px) { .dock a { padding: 8px 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
