:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#17242b;background:#f8f9f9;font-synthesis:none;font-size:15px}*{box-sizing:border-box}body{margin:0}button,a{font:inherit}button{cursor:pointer}a{color:inherit}.app{max-width:1320px;padding:0 28px;margin:0 auto}.top{padding:45px 0 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.identity{display:flex;align-items:center;gap:17px}.mark{width:48px;height:48px;border-radius:11px;display:grid;place-items:center;background:#193c42;color:#fff;font-size:26px}.eyebrow{font-weight:750;letter-spacing:.16em;color:#648088;font-size:.65rem;margin:0 0 8px}h1{font-size:clamp(1.6rem,2.5vw,2.25rem);font-weight:750;line-height:1.15;letter-spacing:-.045em;margin:0}.source{font-size:.78rem;color:#718188;white-space:nowrap}.controls{background:#fff;border:1px solid #e0e5e5;padding:18px;display:flex;gap:22px;flex-wrap:wrap;border-radius:12px;box-shadow:0 6px 20px #1b33350a}.control-set{display:flex;flex-direction:column;gap:7px}.control-set.last{margin-left:auto}.control-label{font-size:.69rem;letter-spacing:.06em;text-transform:uppercase;color:#738286;font-weight:800}.segmented{display:flex;flex-wrap:wrap;gap:3px;background:#f0f3f3;padding:4px;border-radius:8px}.segmented button{border:0;background:transparent;border-radius:5px;padding:9px 13px;color:#475c61;font-size:.87rem;font-weight:600;white-space:nowrap}.segmented button.active{background:#1d4146;color:white;box-shadow:0 1px 4px #11282b23}.segmented button:focus-visible,.sortbutton:focus-visible,.more:focus-visible,.textbutton:focus-visible,a:focus-visible{outline:3px solid #309eb4;outline-offset:3px}.overview{padding:27px 0 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.overview h2{font-weight:760;font-size:1.45rem;letter-spacing:-.035em;margin:0 0 5px}.muted{margin:0;font-size:.85rem;color:#64787d}.sorttools{display:flex;align-items:center;gap:14px}.textbutton{border:0;background:transparent;color:#507078;padding:6px;text-decoration:underline;text-underline-offset:3px;font-size:.83rem}.sortbutton{border:1px solid #cbd8d9;background:#fff;border-radius:7px;padding:9px 16px;font-size:.88rem;font-weight:750;color:#2b5159}.result-section{margin:0 0 23px}.group-heading{font-size:1.1rem;margin:24px 0 12px;letter-spacing:-.01em}.film-list{background:#fff;border:1px solid #dce3e4;border-radius:12px;overflow:hidden}.table-header,.table-row{display:grid;grid-template-columns:minmax(250px, 1.25fr) minmax(75px,.27fr) minmax(370px,1.4fr);align-items:start;column-gap:21px}.table-header{padding:12px 20px;color:#6b7c80;font-size:.7rem;text-transform:uppercase;font-weight:750;letter-spacing:.09em;background:#f2f5f5;border-bottom:1px solid #e0e6e6}.table-row{padding:18px 20px;border-bottom:1px solid #e8eeee;min-height:98px}.table-row:last-child{border-bottom:0}.film-info{display:flex;align-items:flex-start;gap:13px;min-width:0}.film-details{min-width:0}.film-title{font-weight:750;text-decoration:none;font-size:.99rem;line-height:1.38;display:block;color:#19353b}.film-title:hover,.rating-link:hover,.screening-time:hover{text-decoration:underline;text-underline-offset:3px}.metadata{margin-top:5px;color:#718086;font-size:.79rem;line-height:1.6}.rating{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.rating-link{color:#136b72;font-size:1.22rem;font-weight:800;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}.rating-link.unrated{color:#879497}.votes{font-size:.68rem;color:#93a0a3}.show-grid{display:flex;flex-wrap:wrap;gap:7px}.screening{display:inline-flex;flex-direction:column;gap:2px;padding:8px 11px;border:1px solid #e2e8e8;border-radius:7px;background:#fbfcfc;min-width:122px;max-width:100%}.screening-time{font-size:.85rem;font-weight:800;text-decoration:none;color:#204c54;white-space:nowrap}.screening-cinema{font-size:.7rem;color:#748589;line-height:1.4}.more{margin-top:8px;border:0;background:none;padding:6px 3px;color:#176477;font-size:.78rem;font-weight:750}.more:hover{text-decoration:underline}.poster{width:45px;height:66px;flex:0 0 auto;object-fit:cover;background:#dbe6e6;border-radius:4px}.poster-big{width:100%;height:235px;border-radius:8px 8px 0 0;object-fit:cover}.placeholder{display:grid;place-items:center;color:#9eafaf;font-size:.67rem;font-weight:800;letter-spacing:.1em}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:14px}.card{background:#fff;border:1px solid #e1e7e7;box-shadow:0 3px 13px #2b484910;border-radius:10px;padding:14px}.card .film-info{flex-direction:column}.card .film-details{width:100%}.card .poster-big{max-height:238px}.card .rating{flex-direction:row;align-items:baseline;gap:12px;margin:12px 0;padding:9px 0;border-top:1px solid #edf0f0;border-bottom:1px solid #edf0f0}.card .screening{min-width:122px}.card .show-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}.card .film-title{font-size:1.07rem}.empty{background:#fff;border:1px solid #e0e6e6;padding:38px;border-radius:10px;color:#6f8185}
@media (max-width:1000px){.table-header,.table-row{grid-template-columns:minmax(230px,1.1fr) 80px minmax(250px,1.2fr);gap:12px}.screening{min-width:110px}.control-set.last{margin-left:0}}
@media (max-width:710px){.app{padding:0 14px}.top{padding:25px 0 19px;align-items:flex-start;flex-direction:column}.source{white-space:normal}.mark{width:42px;height:42px}.controls{padding:12px;gap:12px}.control-set{width:100%}.segmented{width:100%}.segmented button{flex:1;padding:8px 10px}.overview{align-items:flex-start;flex-wrap:wrap}.sorttools{margin-left:auto}.table-header{display:none}.table-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:15px}.table-row .film-col{grid-column:1}.table-row .score-col{grid-column:2;grid-row:1}.table-row .show-col{grid-column:1 / -1;border-top:1px solid #eef0f0;padding-top:12px}.screening{flex:1 1 100px}.rating-link{font-size:1.03rem}.votes{font-size:.63rem}.cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.group-heading{font-size:1rem}footer{display:block}.metadata{font-size:.75rem}}

.column-sort{font:inherit;font-weight:inherit;letter-spacing:inherit;color:inherit;border:0;background:none;text-align:left;cursor:pointer;padding:0;text-transform:inherit}.column-sort:hover{color:#195966;text-decoration:underline}.column-sort:focus-visible{outline:3px solid #309eb4;outline-offset:3px}

/* Ovládanie tabuľky: zoraďovanie ČSFD zostáva výhradne v hlavičke. */
.original-title{font-style:italic;color:#526d73}

/* Hlavičkové zoradenie + priebežné vyhľadávanie */
.search-control{flex:1 1 260px;min-width:230px;margin-left:auto}
.search-input{display:block;width:100%;height:42px;border:1px solid #ced9da;border-radius:8px;background:#fff;color:#1d343a;font:inherit;font-size:.88rem;padding:9px 12px;box-shadow:0 1px 2px #122b2b08}
.search-input::placeholder{color:#7b8b8f}
.search-input:focus-visible{outline:3px solid #309eb4;outline-offset:2px}
@media (max-width:1000px){.search-control{margin-left:0;flex-basis:100%}}
@media (max-width:710px){.search-control{min-width:0;width:100%}.search-input{font-size:16px}}

/* Obrázok z dodanej fotografie namiesto pôvodného symbolu */
.identity .mark {
  overflow: hidden;
  flex: 0 0 48px;
  padding: 0;
  background: #ffffff;
  border-radius: 7px;
}
.identity .mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width:710px) {
  .identity .mark { flex-basis: 42px; }
}


/* Tmavý režim: čierna, biela a neutrálne odtiene sivej. */
html[data-theme="dark"] {
  color-scheme: dark;
  background: #080808;
  color: #f2f2f2;
}
html[data-theme="dark"] body {
  background: #080808;
  color: #f2f2f2;
}
html[data-theme="dark"] .identity .mark { background: #000000; }
html[data-theme="dark"] .controls,
html[data-theme="dark"] .film-list,
html[data-theme="dark"] .card,
html[data-theme="dark"] .empty {
  background: #151515;
  border-color: #393939;
  box-shadow: none;
}
html[data-theme="dark"] .segmented { background: #262626; }
html[data-theme="dark"] .segmented button { color: #c8c8c8; }
html[data-theme="dark"] .segmented button.active {
  background: #ebebeb;
  color: #101010;
  box-shadow: 0 1px 4px #00000060;
}
html[data-theme="dark"] .source,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .metadata,
html[data-theme="dark"] .screening-cinema,
html[data-theme="dark"] .votes,
html[data-theme="dark"] .control-label {
  color: #acacac;
}
html[data-theme="dark"] .table-header {
  background: #202020;
  color: #c8c8c8;
  border-color: #393939;
}
html[data-theme="dark"] .table-row,
html[data-theme="dark"] .card .rating,
html[data-theme="dark"] .table-row .show-col { border-color: #353535; }
html[data-theme="dark"] .film-title { color: #f5f5f5; }
html[data-theme="dark"] .rating-link,
html[data-theme="dark"] .screening-time,
html[data-theme="dark"] .more { color: #e5e5e5; }
html[data-theme="dark"] .rating-link.unrated { color: #999999; }
html[data-theme="dark"] .screening {
  background: #222222;
  border-color: #454545;
}
html[data-theme="dark"] .poster.placeholder {
  background: #303030;
  color: #c3c3c3;
}
html[data-theme="dark"] .original-title { color: #c2c2c2; }
html[data-theme="dark"] .column-sort { color: #c8c8c8; }
html[data-theme="dark"] .column-sort:hover { color: #ffffff; }
html[data-theme="dark"] .search-input {
  background: #202020;
  border-color: #555555;
  box-shadow: none;
  color: #f5f5f5;
}
html[data-theme="dark"] .search-input::placeholder { color: #aaaaaa; }
html[data-theme="dark"] .search-input::-webkit-search-cancel-button { filter: invert(1); }
html[data-theme="dark"] .search-control input:focus-visible,
html[data-theme="dark"] .segmented button:focus-visible,
html[data-theme="dark"] .column-sort:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] .more:focus-visible {
  outline-color: #dddddd;
}
