:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #676767;
  --line: #111111;
  --soft: #f3f3f0;
  --yellow: #ffd814;
  --green: #4d8f2f;
  --blue: #0b48a5;
  --red: #c92f2f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 24% 30%, #fff 0, #f8f8f6 52%, #ecece8 100%);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  right: -5vw;
  bottom: -2vh;
  width: min(58vw, 860px);
  height: calc(100vh - 70px);
  background: url("https://kasynia.cz/obrazek.png") right bottom / contain no-repeat;
  opacity: .23;
  filter: saturate(.82) contrast(1.04) drop-shadow(-14px 14px 16px rgba(0,0,0,.18));
  pointer-events: none;
}
a { color: inherit; }
button, select { font: inherit; }

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid var(--line);
}
.brand strong { display: block; font-size: 22px; letter-spacing: .06em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.top-nav a { font-weight: 700; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 64px;
  padding: 58px 0;
  border-bottom: 1px solid #bdbdbd;
}
.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15em;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 820px;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.lead { max-width: 720px; font-size: 18px; color: #333; }
.hero-logo {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  justify-self: end;
  border: 3px solid var(--line);
  box-shadow: 12px 12px 0 var(--yellow), 16px 16px 0 var(--line);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  appearance: none;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--line);
}
.button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--line); }
.button-primary { background: var(--yellow); }
.manifest-line { margin: 18px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }

section:not(.hero) { padding: 48px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.muted { color: var(--muted); margin: 0; font-size: 13px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  border: 2px solid var(--line);
  padding: 18px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.stat-card:nth-child(1) { box-shadow: inset 0 7px 0 var(--yellow); }
.stat-card:nth-child(2) { box-shadow: inset 0 7px 0 var(--green); }
.stat-card:nth-child(3) { box-shadow: inset 0 7px 0 var(--blue); }
.stat-card:nth-child(4) { box-shadow: inset 0 7px 0 var(--red); }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-card strong { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; line-height: 1; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; max-width: 850px; }

.content-section,
.history-section { border-top: 1px solid #bdbdbd; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.poster-card { min-width: 0; }
.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 2px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  background: var(--yellow);
  border: 2px solid var(--line);
  font-weight: 900;
}
.poster-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 7px;
  background: #fff;
  border: 2px solid var(--line);
  font-size: 11px;
  font-weight: 900;
}
.poster-info { padding-top: 9px; }
.poster-title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.poster-meta { margin: 0; color: var(--muted); font-size: 12px; }
.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.compact .poster-title { font-size: 13px; }

.date-chip,
select {
  border: 2px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  font-weight: 700;
}
.day-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 13px 0 18px;
  font-size: 14px;
}
.day-summary strong { font-size: 20px; margin-right: 4px; }
.empty-state,
.error-state {
  grid-column: 1 / -1;
  border: 2px dashed #aaa;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.error-state { border-color: var(--red); color: var(--red); }

.technical {
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  font-size: 13px;
}
.technical p:last-child { margin-bottom: 0; }
.technical code { background: var(--soft); padding: 2px 5px; }
footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--ink); font-weight: 800; }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; padding: 18px 0; flex-direction: column; }
  .top-nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { justify-self: start; width: min(70vw, 330px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .brand img { width: 58px; height: 58px; }
  .brand strong { font-size: 18px; }
  .hero { padding: 38px 0; }
  h1 { font-size: clamp(40px, 14vw, 64px); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 110px; padding: 13px; }
  .poster-grid, .compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

/* Shared KASYNIA.CZ background artwork */
.hero,
.content-section,
.history-section,
.technical {
  position: relative;
}

@media (max-width: 700px) {
  body::before {
    right: -28vw;
    width: 118vw;
    opacity: .14;
  }
}
