:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --text: #17142b;
  --muted: #5f5b76;
  --line: #e4e1ef;
  --brand: #5b2ee6;
  --brand-ink: #ffffff;
  --brand-soft: #ece6ff;
  --adult: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 20 43 / 6%), 0 4px 16px rgb(23 20 43 / 6%);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f1c;
    --surface: #1b1830;
    --text: #f1effa;
    --muted: #a7a2c2;
    --line: #2d2948;
    --brand: #8c6bff;
    --brand-ink: #110f1c;
    --brand-soft: #2a2350;
    --adult: #ff8a7a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", Arial, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.2; margin: .4em 0 .3em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .7em; }
h3 { font-size: 1.02rem; line-height: 1.35; margin: .3em 0; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.muted, .hint { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-top: 0; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 10; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em; direction: ltr; }
.logo span { color: var(--brand); }
.logo:hover { text-decoration: none; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-width: 170px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lang summary:hover, .lang[open] summary { border-color: var(--brand); }
.lang summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang summary span { flex: 1; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang summary .globe { color: var(--brand); }
.lang summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul { z-index: 20; width: 100%; box-sizing: border-box; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.lang li a:hover, .lang li a[aria-current] { background: var(--brand-soft); text-decoration: none; }

.hero { padding: 28px 0 8px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.city { display: flex; gap: 10px; align-items: center; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; color: var(--text); box-shadow: var(--shadow); }
.city small { font-weight: 500; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 12px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--text); border-color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--text); font-size: .82rem; }
.chips .chip { padding: 7px 14px; font-size: .9rem; border: 1px solid transparent; }
.chips .chip small { color: var(--muted); }
.chips .chip.on { background: var(--brand); color: var(--brand-ink); }
.chips .chip.on small { color: inherit; opacity: .8; }
.chip-adult { background: transparent; border: 1px solid var(--adult); color: var(--adult); }
.chip-off { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tags { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }

.near { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 18px; font-size: .9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; border: 0; cursor: pointer; font: inherit; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 9; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card h3 a { color: var(--text); }
.meta { margin: .15em 0; color: var(--muted); font-size: .9rem; }
.dist { color: var(--brand); font-weight: 600; }
.empty { padding: 40px 0; color: var(--muted); }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }

.event { margin-top: 12px; }
.event-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.dates { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dates li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.dates li:first-child { border-top: 0; }
.aff-note { font-size: .85rem; margin: 8px 2px 0; }
.also { font-size: 1rem; margin: 18px 0 8px; }
.dates .seller { font-weight: 600; flex: 1 1 160px; }
.dates time { font-weight: 600; flex: 1 1 160px; }

.prose { max-width: 70ch; }
.notfound { padding: 40px 0; }

.foot { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot p { margin: .4em 0; max-width: 80ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.prose h2 { font-size: 1.1rem; margin: 1.4em 0 .4em; }

/* Artist follow */
.top-in { gap: 12px; }
.my-artists { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 20px; font-size: .9rem; }
.follow[hidden], .my-artists[hidden], .badge[hidden] { display: none; }
.btn-small { padding: 6px 12px; font-size: .88rem; }
.artist-block .sec-head { align-items: center; }
.chip-new { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.card-new { border-color: var(--brand); }
