:root {
  --bg: #0e0f13;
  --panel: #171920;
  --panel-2: #1f222b;
  --line: #2a2e39;
  --text: #eceef3;
  --muted: #8d93a3;
  --accent: #ffcc33;
  --accent-ink: #1a1400;
  --multiplex: #e5484d;
  --planetakino: #3e8ef7;
  --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8; --panel: #fff; --panel-2: #f0f1f4; --line: #e1e3e8;
    --text: #15171c; --muted: #6a7080; --accent: #f5b800; --accent-ink: #1a1400;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.updated { color: var(--muted); font-size: 12.5px; text-align: right; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 12px; padding: 7px 12px; cursor: pointer; text-align: center; min-width: 64px; font: inherit; }
.day b { display: block; font-size: 15px; }
.day small { color: var(--muted); font-size: 12px; }
.day.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.active small { color: var(--accent-ink); opacity: .75; }

.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 8px; padding: 10px 0; }
.filters input, .filters select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font: inherit; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }

.cinemas { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 10px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px;
  padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.multiplex { background: var(--multiplex); }
.dot.planetakino { background: var(--planetakino); }

.summary { color: var(--muted); font-size: 13px; padding: 4px 0 12px; }
.movies { display: grid; gap: 14px; padding-bottom: 30px; }

.movie { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.poster { position: relative; width: 120px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), color-mix(in srgb, var(--accent) 22%, var(--panel-2))); }
/* Placeholder title shows through when the image is missing or fails to load. */
.poster::before { content: "🎬\A" attr(data-t); white-space: pre-wrap; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movie h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.movie h2 a { text-decoration: none; }
.movie h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.age { border: 1px solid var(--muted); border-radius: 5px; padding: 0 5px; font-size: 12px; }
.cin { padding: 8px 0; border-top: 1px dashed var(--line); }
.cin:first-of-type { border-top: 0; }
.cin-name { font-size: 13.5px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-bottom: 7px; }
.cin-name small { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .cin-name small { flex-basis: 100%; padding-left: 15px; } }
.times { display: flex; flex-wrap: wrap; gap: 7px; }
.t { text-decoration: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 5px 10px; min-width: 70px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.t:hover { border-color: var(--accent); transform: translateY(-1px); }
.t b { font-size: 15px; }
.t span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.t .p { color: var(--accent); font-weight: 600; }
.t.closed { opacity: .45; }
.more { margin-top: 8px; background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

@media (max-width: 560px) {
  .movie { grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
  .poster { width: 76px; }
  .movie h2 { font-size: 16px; }
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.foot { color: var(--muted); font-size: 12px; padding: 20px 16px 40px; border-top: 1px solid var(--line); }
