@font-face {
  font-family: "Dela Gothic One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/dela-gothic-one.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/archivo-black.woff2") format("woff2");
}

@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/chivo.woff2") format("woff2");
}

@font-face {
  font-family: "Chivo";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/chivo-italic.woff2") format("woff2");
}

:root {
  --blue: oklch(42% 0.18 260);
  --blue-dark: oklch(30% 0.12 260);
  --red: oklch(54% 0.21 30);
  --error-ink: oklch(40% 0.18 28);
  --lime: oklch(90% 0.18 115);
  --pink: oklch(88% 0.08 345);
  --white: oklch(98% 0.01 95);
  --ink: oklch(18% 0.035 255);
  --muted: oklch(38% 0.03 255);
  --line: oklch(23% 0.055 255);
  --focus-on-light: var(--blue-dark);
  --focus-on-dark: var(--lime);
  --display: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Dela Gothic One", "Archivo Black", sans-serif;
  --body: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --font-brand: clamp(3rem, 8vw, 5.5rem);
  --font-brand-mobile: clamp(3rem, 17vw, 5.25rem);
  --font-brand-compact: 3rem;
  --font-detail: clamp(2.5rem, 6.6vw, 5rem);
  --font-detail-mobile: clamp(2.25rem, 10vw, 3.25rem);
  --font-dialog: clamp(1.5rem, 5vw, 2.25rem);
  --font-section: clamp(1.25rem, 2.2vw, 1.75rem);
  --font-event: clamp(1.125rem, 1.4vw, 1.375rem);
  --font-event-mobile: clamp(1.0625rem, 4.5vw, 1.1875rem);
  --font-event-soft: clamp(1rem, 1.2vw, 1.125rem);
  --font-lede: 1.125rem;
  --font-body: 1rem;
  --font-meta: 0.875rem;
  --font-ui: 0.8125rem;
  --font-micro: 0.75rem;
  --font-tag: 0.625rem;
  --font-icon: 1.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-sticky: 20;
  --z-skip: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: var(--font-body);
  line-height: 1.5;
  text-size-adjust: 100%;
  overflow-x: clip;
}

a { color: inherit; text-decoration-thickness: .12em; text-underline-offset: .14em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
button, input { font: inherit; }
button { color: inherit; }
.wrap {
  width: min(1280px, calc(100% - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
}

/* A loud, civic header: part transit sign, part gig poster. */
#hd {
  position: relative;
  color: var(--white);
  background: var(--blue);
  border-bottom: 5px solid var(--ink);
  isolation: isolate;
}
#hd::before {
  content: "TONIGHT  •  TOMORROW  •  THIS WEEKEND  •  ALL OF STOCKHOLM  •  ";
  position: absolute;
  inset: 0 0 auto;
  padding: 6px 0;
  color: var(--ink);
  background: var(--lime);
  border-bottom: 3px solid var(--ink);
  font-weight: 900;
  font-size: var(--font-micro);
  letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
#hd .wrap {
  min-height: clamp(150px, 18vw, 220px);
  padding-block: 50px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
}
#hd h1, #hd .site-title { margin: 0; font-size: var(--font-brand); line-height: .9; }
#hd h1 a, #hd .site-title a { color: var(--white); font-family: var(--wordmark); font-weight: 400; letter-spacing: -.04em; text-decoration: none; }
#hd h1 a:hover, #hd .site-title a:hover { color: var(--lime); }
.header-main { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.subscribe-cta {
  display: grid;
  gap: 1px;
  min-width: 230px;
  padding: 11px 15px 10px;
  color: var(--ink);
  background: var(--lime);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: var(--font-body);
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
  transform: rotate(1deg);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.subscribe-cta-note { font-size: var(--font-micro); font-weight: 650; letter-spacing: .01em; }
.subscribe-cta:hover { color: var(--ink); background: var(--pink); box-shadow: 3px 3px 0 var(--ink); transform: translate(3px, 3px) rotate(0); }
.subscribe-cta:focus-visible { outline: 4px solid var(--focus-on-dark); outline-offset: 3px; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--wordmark);
  font-weight: 400;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.wordmark:focus-visible { outline-color: var(--focus-on-dark); }
.wordmark-fyi {
  margin-left: .04em;
  padding: .05em .12em .1em .08em;
  color: var(--ink);
  background: var(--lime);
  border: .055em solid var(--ink);
  box-shadow: .09em .09em 0 var(--ink);
  font-size: .48em;
  letter-spacing: -.03em;
  transform: rotate(-2deg) translateY(-.06em);
}
.wordmark:hover .wordmark-fyi { color: var(--white); background: var(--red); }
.wordmark-alt { margin-right: .08em; color: var(--pink); font-size: .5em; letter-spacing: -.03em; }
#hd small {
  display: inline-block;
  margin: 8px 0 0 clamp(2px, 5vw, 64px);
  padding: 5px 11px 6px;
  color: var(--ink);
  background: var(--pink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: var(--font-lede);
  font-weight: 900;
  font-style: normal;
  transform: rotate(-1.5deg);
}

main.wrap { padding-top: 0; }

/* Filter desk */
#filters {
  position: relative;
  z-index: var(--z-sticky);
  margin: -1px 0 0;
  padding: 14px 0 15px;
  background: var(--white);
  border-bottom: 5px solid var(--ink);
}
.frow { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.frow:first-child { margin-top: 0; }
#filter-more > .frow:first-child { margin-top: 16px; }
#filters input[type="search"] {
  flex: 1;
  min-width: 240px;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 0;
  font-size: var(--font-lede);
  font-weight: 650;
  box-shadow: 4px 4px 0 var(--lime);
  appearance: none;
}
#filters input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
#filters input[type="search"]:focus { outline: 4px solid var(--focus-on-light); outline-offset: 3px; }

#quick, #scenes {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
}
#future-ranges { display: contents; }
#future-ranges[hidden] { display: none; }
#scene-more { display: contents; }
#scene-more[hidden] { display: none; }
.filter-label {
  flex: 0 0 54px;
  padding-top: 12px;
  color: var(--blue-dark);
  font-size: var(--font-micro);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.scroll-hint { display: none; }
#quick button, #scenes button, #date-trigger, #filter-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--font-ui);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms ease, color 180ms ease;
}
#quick button:hover, #scenes button:hover, #date-trigger:hover, #filter-toggle:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-2px) rotate(-1deg);
}
#quick button.on, #scenes button.on {
  color: var(--white);
  background: var(--blue);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 850;
}
#quick button:focus-visible, #scenes button:focus-visible, #date-trigger:focus-visible, #filter-toggle:focus-visible {
  outline: 3px solid var(--focus-on-light); outline-offset: 2px;
}
#more-dates, #more-scenes { color: var(--muted); font-weight: 650; border-style: dashed; }
#more-dates:hover, #more-scenes:hover { color: var(--ink); }
#filter-toggle { display: none; }
#my-list {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--lime);
  border: 3px solid var(--ink);
  font-size: var(--font-ui);
  font-weight: 850;
  cursor: pointer;
}
#my-list:hover, #my-list.on { color: var(--white); background: var(--blue); }
#my-list:focus-visible { outline: 4px solid var(--focus-on-light); outline-offset: 3px; }
#date-trigger { margin-left: 2px; }
#date-trigger.hidden { display: none; }
#date-range { display: none; align-items: center; gap: 6px; }
#date-range.open { display: inline-flex; }
#date-sep, #f-date-to { display: none; }
#date-range.has-from #date-sep, #date-range.has-from #f-date-to { display: inline-block; }
#f-date-from, #f-date-to { min-height: 44px; padding: 4px 8px; border: 2px solid var(--ink); background: var(--white); }
#filters label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--font-ui);
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
#filters input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
#filters input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }

#info { min-height: 34px; padding: 9px 0 6px; color: var(--muted); font-size: var(--font-ui); font-weight: 650; }
#active-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 8px; }
#active-filters[hidden] { display: none; }
.active-filter {
  min-height: 44px;
  max-width: 100%;
  padding: 7px 11px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: var(--font-ui);
  font-weight: 800;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.active-filter:hover { color: var(--ink); background: var(--pink); }
.active-filter:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }

/* Events become an oversized, scannable street programme. */
#info, #active-filters, #events, #pag, #ft { width: min(100%, 1120px); margin-inline: auto; }
#events { list-style: none; padding: 0; counter-reset: event; }
#events li:not(.date-header):not(.month-header):not(.msg) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 88px minmax(250px, 2.5fr) minmax(260px, 1.25fr) 44px;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  min-height: 68px;
  padding: 12px 6px;
  border-top: 2px solid var(--ink);
  transition: transform 220ms var(--ease), background-color 180ms ease;
}
#events li:not(.date-header):not(.month-header):not(.msg):hover { background: var(--lime); }
#events .event-row.is-expanded { background: var(--pink); }
#events .event-row:focus-within { background: color-mix(in oklch, var(--lime) 52%, var(--white)); }
.month-header {
  margin-top: 36px;
  padding: 9px 12px 8px;
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-size: var(--font-section);
  font-weight: 900;
  line-height: 1;
  text-transform: capitalize;
}
.month-header h2, .date-header h2 { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
#events li:first-child.month-header { margin-top: 8px; }
.date-header {
  margin: 24px 0 0;
  padding: 10px 12px 9px;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--ink);
  font-family: var(--wordmark);
  font-size: var(--font-section);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: lowercase;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-.35deg);
}
.ongoing-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 9px;
  align-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.ongoing-header { padding: 0; }
.ongoing-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
#events li:first-child.date-header { margin-top: 8px; }
.ev-date { grid-column: 1; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 4px; color: var(--blue-dark); font-size: var(--font-meta); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ev-time { display: block; white-space: nowrap; }
.ev-main { display: contents; }
.ev-title {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: var(--font-event);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-decoration: none;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: left;
  cursor: pointer;
}
.ev-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ev-title h3 { position: relative; z-index: 2; margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; }
.ev-title:hover { color: var(--blue); }
.ev-title:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; }
.ev-disclosure-icon { position: relative; z-index: 2; display: block; width: 18px; height: 18px; color: currentColor; }
.ev-disclosure-icon::before, .ev-disclosure-icon::after { content: ""; position: absolute; top: 8px; left: 1px; width: 16px; height: 2px; background: currentColor; transition: transform 180ms var(--ease), opacity 180ms ease; }
.ev-disclosure-icon::after { transform: rotate(90deg); }
.ev-title[aria-expanded="true"] .ev-disclosure-icon::after { opacity: 0; transform: rotate(0); }
.ev-meta { grid-column: 3; position: relative; z-index: 2; grid-row: 1; align-self: center; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.ev-venue { min-width: 0; color: var(--blue-dark); font-size: var(--font-meta); font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }
.ev-venue-link { min-width: 44px; min-height: 44px; padding: 5px 0; color: inherit; background: transparent; border: 0; font: inherit; text-align: left; text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .16em; cursor: pointer; }
.ev-venue-link:hover { color: var(--red); }
.ev-venue-link:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.save-event {
  position: relative;
  z-index: 2;
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--font-icon);
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}
.save-event:hover { background: var(--pink); transform: rotate(-7deg) scale(1.06); }
.save-event.on { background: var(--lime); }
.save-event:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
#events .event-uncertain, #events .ongoing-event { border-top-color: var(--muted); border-top-style: dashed; }
.event-uncertain .ev-date, .ongoing-event .ev-date { color: var(--muted); }
.event-uncertain .ev-title, .ongoing-event .ev-title { font-family: var(--body); font-size: var(--font-event-soft); font-weight: 750; letter-spacing: 0; }
.saved-empty { display: grid; justify-items: center; gap: 8px; padding-block: 44px; }
.saved-empty strong { font-family: var(--display); font-size: var(--font-event); font-weight: 850; }
.saved-empty span { color: var(--muted); }
.saved-empty button { margin-top: 8px; }
.list-toolbar { width: min(100%, 1120px); margin: 8px auto 10px; padding: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--lime); border: 3px solid var(--ink); }
.list-toolbar select, .list-toolbar button { min-height: 44px; padding: 7px 11px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; font: inherit; font-size: var(--font-ui); font-weight: 800; }
.list-toolbar select { min-width: min(240px, 100%); }
.list-toolbar button { cursor: pointer; }
.list-toolbar button:hover { color: var(--white); background: var(--blue); }
.list-toolbar select:focus-visible, .list-toolbar button:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
#list-action-result { flex: 1 1 100%; min-height: 20px; font-size: var(--font-ui); font-weight: 800; }
.shared-list { justify-content: space-between; background: var(--pink); }
.list-dialog { width: min(520px, calc(100% - 24px)); padding: 0; color: var(--ink); background: var(--white); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.list-dialog::backdrop { background: oklch(17% .04 264 / .68); }
.list-dialog-panel { display: grid; gap: 10px; padding: 22px; }
.list-dialog h2 { margin: 0 0 8px; font-family: var(--display); font-size: var(--font-dialog); font-weight: 900; line-height: 1; letter-spacing: -.025em; }
.list-dialog label { font-weight: 900; }
.list-dialog input { width: 100%; min-height: 52px; padding: 8px 12px; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 0; font: inherit; font-size: var(--font-body); }
.list-dialog input:focus { outline: 4px solid var(--focus-on-light); outline-offset: 2px; }
#list-editor-hint, #list-editor-error { min-height: 20px; font-size: var(--font-ui); font-weight: 650; }
#list-editor-hint { color: var(--muted); }
#list-editor-error { color: var(--error-ink); font-weight: 750; }
.list-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.list-dialog-actions button { min-height: 44px; padding: 8px 13px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
.list-dialog-actions button[type="submit"] { color: var(--white); background: var(--blue); }
.list-dialog-actions button:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.event-skeleton {
  pointer-events: none;
}
.event-skeleton:hover { background: var(--white) !important; transform: none !important; }
.skeleton-block {
  display: block;
  min-height: 12px;
  background: color-mix(in oklch, var(--muted) 18%, var(--white));
  border-radius: 999px;
  animation: skeleton-pulse 900ms ease-in-out infinite alternate;
}
.skeleton-time { grid-column: 1; width: 38px; }
.skeleton-title { grid-column: 2; width: min(78%, 520px); min-height: 18px; }
.skeleton-venue { grid-column: 3; width: min(72%, 180px); }
.skeleton-action { grid-column: 4; justify-self: end; width: 44px; height: 28px; }
@keyframes skeleton-pulse {
  from { opacity: .48; }
  to { opacity: 1; }
}
.ev-scene {
  position: relative;
  isolation: isolate;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: var(--font-tag);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
}
.ev-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 2px;
  top: 50%;
  height: 18px;
  background: var(--white);
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  transform: translateY(-50%);
}
.ev-scene:hover { color: var(--white); }
.ev-scene:hover::before { background: var(--blue); border-color: var(--ink); }
.ev-scene:focus-visible { outline: 0; }
.ev-scene:focus-visible::before { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.ev-free, .price-free {
  display: inline-block;
  color: var(--ink);
  background: var(--lime);
  font-weight: 850;
  line-height: 1;
  transform: rotate(2deg);
}
.ev-free { padding: 2px 4px; border: 1px solid var(--ink); font-size: var(--font-tag); letter-spacing: .035em; }
.price-free { padding: 4px 8px; border: 2px solid var(--ink); font-size: var(--font-micro); }
.film-item { display: block !important; }
.film-item .ev-title { display: grid; width: 100%; }
.film-desc { max-width: 70ch; margin: 7px 0; color: var(--muted); }
.film-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.film-showtime { padding: 4px 7px; background: var(--pink); border: 1px solid var(--ink); font-size: var(--font-micro); font-weight: 650; }

.event-inline-details {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 4px -6px -12px;
  padding: 22px clamp(16px, 3vw, 34px) 26px;
  background: var(--pink);
  border-top: 4px solid var(--ink);
  animation: event-detail-reveal 180ms var(--ease) both;
}
.event-inline-layout { display: grid; grid-template-columns: minmax(0, 68ch) minmax(220px, 300px); align-items: start; gap: 28px clamp(28px, 6vw, 72px); }
.event-inline-description { font-size: var(--font-body); line-height: 1.65; text-wrap: pretty; hyphens: auto; }
.event-inline-description p { margin: 0 0 1.15em; white-space: pre-line; }
.event-inline-description p:last-child { margin-bottom: 0; }
.event-inline-description h2 { margin: 0 0 .65em; font-family: var(--display); font-size: var(--font-section); line-height: 1.2; }
.event-inline-description ul { margin: 0; padding-left: 1.25em; }
.event-inline-description li { margin: .3em 0; }
.event-inline-description.empty { color: var(--muted); font-weight: 650; }
.event-inline-facts dl { margin: 0; border-top: 3px solid var(--ink); }
.event-inline-facts dl > div { padding: 10px 0 12px; border-bottom: 1px solid var(--ink); }
.event-inline-facts dt { color: var(--muted); font-size: var(--font-micro); font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.event-inline-facts dd { display: grid; gap: 5px; margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.event-inline-facts dd a { min-height: 44px; display: inline-flex; align-items: center; }
.event-inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.event-inline-actions a, .event-inline-actions button, .event-inline-error button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: var(--font-ui);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.event-inline-actions .event-inline-close { color: var(--ink); background: var(--white); }
.event-inline-actions a:hover, .event-inline-actions button:hover, .event-inline-error button:hover { color: var(--ink); background: var(--lime); }
.event-inline-actions a:focus-visible, .event-inline-actions button:focus-visible, .event-inline-error button:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; }
.event-inline-status { min-height: 20px; margin-top: 8px; font-size: var(--font-ui); font-weight: 800; overflow-wrap: anywhere; }
.event-inline-loading, .event-inline-error { min-height: 96px; display: grid; align-content: center; justify-items: start; gap: 14px; font-weight: 850; }
.event-inline-loading-bars { display: block; width: min(520px, 80vw); height: 12px; background: color-mix(in oklch, var(--ink) 18%, var(--pink)); box-shadow: 0 22px 0 color-mix(in oklch, var(--ink) 10%, var(--pink)); animation: skeleton-pulse 900ms ease-in-out infinite alternate; }
@keyframes event-detail-reveal { from { opacity: 0; clip-path: inset(0 0 100%); } to { opacity: 1; clip-path: inset(0); } }

#pag { display: flex; align-items: center; gap: 12px; padding: 28px 0; }
.page-status { color: var(--muted); font-size: var(--font-ui); font-weight: 800; }
#pag button, .actions a, .actions button, #submit-form button[type="submit"], #subscribe-form button[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 9px 16px;
  color: var(--white);
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
#pag button:hover, .actions a:hover, .actions button:hover, #submit-form button[type="submit"]:hover, #subscribe-form button[type="submit"]:hover { color: var(--white); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
#pag button:focus-visible, .actions a:focus-visible, .actions button:focus-visible, #submit-form button[type="submit"]:focus-visible, #subscribe-form button[type="submit"]:focus-visible, .msg button:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
}
#submit-form button[type="submit"]:disabled, #subscribe-form button[type="submit"]:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.msg button { min-height: 44px; margin: 10px 3px 0; padding: 7px 12px; color: var(--white); background: var(--blue); border: 2px solid var(--ink); font-weight: 900; cursor: pointer; }

#ft { margin-top: 26px; padding: 20px 0 max(32px, calc(16px + env(safe-area-inset-bottom))); border-top: 5px solid var(--ink); font-weight: 650; }
#ft a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin-right: 1px; padding-inline: 9px; }
.msg { padding: 70px 16px; color: var(--muted); text-align: center; font-size: var(--font-lede); font-weight: 650; }

/* Detail and submission pages */
#detail { padding: 32px 0 80px; }
.detail-header .wrap { min-height: 132px; }
#detail .back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 24px; font-weight: 900; }
.detail-lead { max-width: 1000px; padding-bottom: 36px; border-bottom: 5px solid var(--ink); }
#detail h1 { max-width: 18ch; margin: 0 0 24px; font-family: var(--display); font-size: var(--font-detail); font-weight: 900; line-height: .98; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
#detail .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 70ch; margin-bottom: 16px; color: var(--blue-dark); font-size: var(--font-lede); font-weight: 800; }
#detail .meta span { position: relative; }
#detail .meta span::before { content: "·"; position: absolute; left: -15px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 68ch) minmax(220px, 300px); align-items: start; gap: 40px clamp(32px, 7vw, 88px); padding-top: 36px; }
#detail .desc { margin: 0; font-size: var(--font-lede); line-height: 1.65; text-wrap: pretty; hyphens: auto; }
#detail .desc p { margin: 0 0 1.35em; white-space: pre-line; }
#detail .desc p:last-child { margin-bottom: 0; }
#detail .desc h2 { margin: 0 0 .7em; font-size: var(--font-section); line-height: 1.2; }
#detail .desc ul { margin: 0; padding-left: 1.25em; }
#detail .desc li { margin: .35em 0; }
#detail .desc.empty { color: var(--muted); }
.detail-facts { position: sticky; top: 24px; }
#detail dl { margin: 0; border-top: 3px solid var(--ink); }
#detail dl > div { padding: 12px 0 14px; border-bottom: 1px solid var(--ink); }
#detail dt { color: var(--muted); font-size: var(--font-micro); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
#detail dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
#detail .actions { display: grid; gap: 12px; margin-top: 24px; }
#detail .actions a, #detail .actions button { width: 100%; justify-content: center; font: inherit; }
#detail .actions button { color: var(--ink); background: var(--lime); }
#detail #share-result { min-height: 24px; margin-top: 12px; font-size: var(--font-ui); font-weight: 800; overflow-wrap: anywhere; }
#detail .ts { margin-top: 40px; color: var(--muted); font-size: var(--font-micro); }

#submit-form { max-width: 720px; margin: 30px 0; }
#submit-form input[type="url"] { width: 100%; min-height: 58px; padding: 10px 14px; color: var(--ink); background: var(--white); border: 4px solid var(--ink); border-radius: 0; font-size: var(--font-body); }
#submit-form input[type="url"]::placeholder { color: var(--muted); opacity: 1; }
#submit-form input[type="url"]:focus { outline: 4px solid var(--focus-on-light); outline-offset: 3px; }
#submit-form .submit-row { margin-top: 14px; }
#submit-result { margin-top: 20px; font-weight: 800; }

#subscribe-form { max-width: 760px; margin: 30px 0; }
#subscribe-form fieldset { margin: 0 0 24px; padding: 18px; border: 4px solid var(--ink); }
#subscribe-form legend, #subscribe-form .subscription-email { font-weight: 900; }
.subscription-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.subscription-scenes label { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 8px 10px; background: var(--pink); border: 2px solid var(--ink); font-weight: 650; cursor: pointer; }
.subscription-scenes input { width: 18px; height: 18px; accent-color: var(--blue); }
#subscribe-form input[type="email"] { display: block; width: 100%; min-height: 58px; margin-top: 7px; padding: 10px 14px; border: 4px solid var(--ink); border-radius: 0; }
#subscribe-form input[type="email"]:focus { outline: 4px solid var(--focus-on-light); outline-offset: 3px; }
#subscribe-form .submit-row { margin-top: 14px; }
#subscribe-result { margin-top: 20px; font-weight: 800; }
#submit-result[role="alert"], #subscribe-result[role="alert"], #save-result[role="alert"], #share-result[role="alert"] { color: var(--error-ink); }
.referral-intro { max-width: 68ch; padding: 14px 16px; background: var(--lime); border: 3px solid var(--ink); }
.share-picks { max-width: 680px; margin-top: 38px; padding: 24px; background: var(--lime); border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.share-picks h2 { margin: 0 0 8px; font-family: var(--display); font-size: var(--font-dialog); font-weight: 900; line-height: 1; letter-spacing: -.025em; }
.share-picks p { max-width: 55ch; }
.share-picks button { min-height: 48px; padding: 9px 16px; color: var(--white); background: var(--blue); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-weight: 900; cursor: pointer; }
#share-result { min-height: 24px; margin-top: 14px; font-weight: 900; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: var(--z-skip); padding: 10px 14px; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 12px; }

@media (hover: none) {
  #quick button:hover, #scenes button:hover, #date-trigger:hover, #filter-toggle:hover,
  #events li:not(.date-header):not(.month-header):not(.msg):hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  #hd::before { content: "TONIGHT  •  TOMORROW  •  THIS WEEK"; }
  .wrap { width: min(calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)), 1180px); }
  #hd .wrap { min-height: 142px; padding-top: 48px; padding-bottom: 16px; }
  #hd h1, #hd .site-title { font-size: var(--font-brand-mobile); }
  #hd .wrap { display: grid; align-content: end; justify-items: start; }
  .header-main { display: contents; }
  #hd h1, #hd .site-title { order: 1; }
  #hd small { order: 2; margin: 6px 0 0 3px; }
  .subscribe-cta { order: 3; min-width: 0; width: auto; margin-top: 10px; padding: 9px 12px 8px; box-shadow: 4px 4px 0 var(--ink); font-size: var(--font-meta); transform: none; }
  #filters { padding-top: 10px; padding-bottom: 11px; }
  #filters > .frow:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #filters input[type="search"] { grid-column: 1 / -1; width: 100%; min-width: 0; height: 48px; font-size: var(--font-body); box-shadow: 3px 3px 0 var(--lime); }
  #my-list { width: 100%; min-height: 48px; justify-content: center; padding-inline: 10px; }
  #filter-toggle { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; border-radius: 0; line-height: 1.15; overflow-wrap: anywhere; }
  #filter-more { display: none; padding-top: 8px; }
  #filter-more.open { display: block; }
  #filter-more > .frow:first-child { margin-top: 8px; }
  #filter-more .frow { align-items: flex-start; gap: 8px; }
  .filter-label { flex-basis: 100%; padding-top: 4px; }
  .scroll-hint { display: none; }
  #quick, #scenes { flex: 1 1 100%; flex-wrap: wrap; width: 100%; max-width: 100%; gap: 7px; overflow: visible; padding: 0; }
  #quick button, #scenes button { flex: none; min-height: 44px; }
  #date-trigger { min-height: 44px; margin-left: 0; }
  #date-range.open { display: flex; flex: 1 1 100%; flex-wrap: wrap; }
  #f-date-from, #f-date-to { flex: 1 1 145px; min-width: 0; }
  #events li:not(.date-header):not(.month-header):not(.msg) { grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: start; gap: 2px 10px; min-height: 84px; padding: 7px 2px 8px; }
  #events li:not(.date-header):not(.month-header):not(.msg):hover { transform: none; }
  .month-header { margin-top: 28px; }
  .ev-date { grid-column: 1; grid-row: 1 / span 2; align-self: start; flex-direction: column; gap: 3px; padding-top: 8px; overflow-wrap: anywhere; }
  .ev-time { white-space: normal; }
  .ev-title { grid-column: 2; grid-row: 1; min-height: 0; align-items: flex-start; padding-top: 2px; font-size: var(--font-event-mobile); line-height: 1.16; letter-spacing: -.008em; }
  .ev-meta { position: relative; z-index: 2; grid-column: 2; grid-row: 2; align-self: start; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 44px; gap: 2px 7px; }
  .ev-venue { display: inline; grid-column: 2; min-width: 0; }
  .ev-venue-link { min-height: 44px; padding-block: 3px; }
  .ev-scene { grid-column: 3; }
  .ev-free { grid-column: 1; grid-row: 1; align-self: center; }
  .save-event { position: relative; z-index: 2; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .event-inline-details { grid-column: 1 / -1; grid-row: 3; margin: 6px -2px -8px; padding: 16px 12px 20px; }
  .event-inline-layout { grid-template-columns: 1fr; gap: 24px; }
  .event-inline-description { font-size: var(--font-body); }
  .event-inline-facts dd a { min-height: 44px; }
  .film-item .event-inline-details { margin: 14px -2px -8px; }
  .event-uncertain .ev-title, .ongoing-event .ev-title { font-size: var(--font-body); }
  #events .event-skeleton { grid-template-columns: 64px minmax(0, 1fr) 44px; }
  .skeleton-time { grid-column: 1; grid-row: 1 / span 2; }
  .skeleton-title { grid-column: 2; grid-row: 1; width: 82%; }
  .skeleton-venue { grid-column: 2; grid-row: 2; width: 56%; }
  .skeleton-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: block; height: 44px; }
  .date-header { margin-top: 20px; box-shadow: 5px 5px 0 var(--ink); }
  #detail { padding-top: 18px; }
  #detail .back { margin-bottom: 16px; }
  .detail-lead { padding-bottom: 28px; }
  #detail h1 { font-size: var(--font-detail-mobile); }
  #detail .meta { display: grid; gap: 5px; font-size: var(--font-body); }
  #detail .meta span::before { content: none; }
  .detail-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 28px; }
  .detail-facts { position: static; }
  #detail dd a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
  #subscribe-form fieldset { padding: 12px; }
  .subscription-scenes { grid-template-columns: 1fr; }
  .subscription-scenes label { min-height: 44px; }
  .share-picks { padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
}

@media (max-width: 360px) {
  #f-date-from, #f-date-to { flex-basis: 100%; width: 100%; }
  #date-sep { display: none !important; }
  #events .ev-scene { display: none; }
}

/* Preserve the masthead at 200% zoom, where a 390px phone reflows near 195 CSS px. */
@media (max-width: 280px) {
  #hd h1, #hd .site-title { font-size: 21vw; }
  #hd small, .subscribe-cta { max-width: 100%; overflow-wrap: anywhere; }
}

@media (min-width: 761px) and (max-width: 900px) and (max-height: 520px) {
  #hd .wrap { min-height: 112px; padding-top: 40px; padding-bottom: 12px; }
  #hd h1, #hd .site-title { font-size: var(--font-brand-compact); }
  #hd small { margin-top: 4px; }
  #filter-toggle { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 0; }
  #filter-more { display: none; }
  #filter-more.open { display: block; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  #hd .wrap { min-height: 170px; }
  #events li:not(.date-header):not(.month-header):not(.msg) { grid-template-columns: 88px minmax(210px, 2.5fr) minmax(190px, 1fr) 44px; }
  .ev-title { font-size: var(--font-event); }
}

@media (forced-colors: active) {
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline-color: Highlight; }
  #quick button.on, #scenes button.on, .active-filter, .save-event.on { border-width: 3px; }
}

@media (pointer: coarse) and (min-width: 761px) {
  #quick button, #scenes button, #date-trigger, #filter-toggle,
  #filters label, #f-date-from, #f-date-to { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
