/* CleanWhale Today: the cinema repertoire (/kino, /kino/<city>, /kino/<city>/<cinema>).
   Loaded by views/cinema-*.ejs only, after style.css, and built on its --lu-* tokens: no new
   colours, flat fills, halo-only shadows, weights 400/500/700, no upper-casing or letter
   spacing (design/DESIGN.md). Every rule is scoped by a cw-cinema-* class. */

/* ---------- day strip ---------- */
.cw-cinema-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -2px 14px;
  scrollbar-width: none;
}
.cw-cinema-days::-webkit-scrollbar { display: none; }
.cw-cinema-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: var(--lu-r-sm);
  background: var(--lu-card-solid);
  color: var(--lu-ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--lu-line);
}
.cw-cinema-day:hover { box-shadow: inset 0 0 0 1px var(--lu-accent); color: var(--lu-accent); }
.cw-cinema-day-label { font-size: 0.95rem; font-weight: 500; }
.cw-cinema-day-count { font-size: 0.78rem; color: var(--lu-muted); }
.cw-cinema-day.is-empty .cw-cinema-day-label { color: var(--lu-muted); }
.cw-cinema-day.is-active { background: var(--lu-ink); color: #fff; box-shadow: none; }
.cw-cinema-day.is-active .cw-cinema-day-count { color: rgba(255, 255, 255, 0.78); }
.cw-cinema-day:focus-visible,
.cw-cinema-time:focus-visible,
.cw-cinema-venue-name:focus-visible { outline: 2px solid var(--lu-accent); outline-offset: 2px; }

/* ---------- films ---------- */
.cw-cinema-films { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.cw-cinema-film {
  background: var(--lu-card);
  border: 1px solid var(--lu-card-border);
  border-radius: var(--lu-r);
  padding: 16px 18px 14px;
}
.cw-cinema-film-head { margin: 0 0 6px; }
.cw-cinema-film-title { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--lu-ink); }
.cw-cinema-film-meta { margin: 3px 0 0; font-size: 0.84rem; color: var(--lu-muted); }
.cw-cinema-venue { padding-top: 10px; }
.cw-cinema-venue-name {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lu-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--lu-line);
}
.cw-cinema-venue-name:hover { color: var(--lu-accent); border-bottom-color: var(--lu-accent); }

/* ---------- showtimes ---------- */
.cw-cinema-times { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cw-cinema-time {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--lu-card-solid);
  color: var(--lu-ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--lu-line);
}
a.cw-cinema-time:hover { box-shadow: inset 0 0 0 1px var(--lu-accent); color: var(--lu-accent); }
.cw-cinema-time-clock { font-size: 1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cw-cinema-time-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cw-cinema-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2fc;
  color: var(--lu-accent);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap; /* "po ukraińsku" and "IMAX 3D" stay one pill */
}
.cw-cinema-soldout { font-size: 0.72rem; line-height: 1; padding: 3px 0; color: var(--lu-muted); }
.cw-cinema-time--soldout .cw-cinema-time-clock { color: var(--lu-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- screen readers ---------- */
.cw-cinema-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- notes ---------- */
.cw-cinema-note { margin: 0 0 14px; }
.cw-cinema-source { margin: 24px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--lu-muted); }

@media (max-width: 640px) {
  .cw-cinema-film { padding: 14px; }
  .cw-cinema-days { margin-right: -20px; padding-right: 20px; }
}
