:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --line: #e6e0d6;
  --accent: #e0612b;
  --accent-soft: #fde8dd;
  --chip: #f1ece4;
  --chip-on: #1f2328;
  --chip-on-text: #ffffff;
  --free: #1f7a4d;
  --free-soft: #def3e7;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --card: #1e2125;
    --text: #eceae6;
    --muted: #a3a8ae;
    --line: #2e3238;
    --accent: #ff8a57;
    --accent-soft: #3a2519;
    --chip: #2a2e33;
    --chip-on: #eceae6;
    --chip-on-text: #15171a;
    --free: #6fd39f;
    --free-soft: #173326;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
}
.muted { color: var(--muted); }

.top {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 8px;
}
.top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
#tagline { margin: 2px 0 0; font-size: 0.85rem; }
.lang {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer;
}

.days, .filters {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid transparent; background: var(--chip); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.85rem; cursor: pointer;
  white-space: nowrap;
}
.chip small {
  display: inline-block; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--bg); color: var(--muted); font-size: 0.75rem; unicode-bidi: isolate;
}
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-text); }
.chip[aria-pressed="true"] small { background: rgba(255,255,255,0.18); color: inherit; }
.filters .chip { background: transparent; border-color: var(--line); }
.filters .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

main { padding: 8px 16px 24px; max-width: 720px; margin: 0 auto; }
.day-title { font-size: 1.05rem; margin: 18px 0 8px; }
.day-title span { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.empty { padding: 24px 0; text-align: center; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px;
}
.card-head { display: flex; gap: 10px; align-items: baseline; }
.time { flex: none; font-weight: 700; color: var(--accent); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.title { margin: 0; font-size: 1rem; line-height: 1.3; }
.orig, .where { unicode-bidi: plaintext; }
.orig { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.where { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted); }
.desc { margin: 6px 0 0; font-size: 0.92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--text); }
.tag.free { background: var(--free-soft); color: var(--free); font-weight: 600; }
.tag.full { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.link { display: inline-block; margin-top: 8px; font-size: 0.88rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.foot { font-size: 0.78rem; padding: 0 16px 32px; max-width: 720px; margin: 0 auto; }
