:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #111111;
  --surface-raised: #171717;
  --surface-hover: #1c1c1c;
  --drawer: #1a1a1a;
  --text: #f4f4f4;
  --muted: #929292;
  --muted-strong: #b7b7b7;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #72dfb4;
  --accent-rgb: 114, 223, 180;
  --accent-text: #07140f;
  --danger: #ff846f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body[data-city="guangzhou"] {
  --accent: #ff6faa;
  --accent-rgb: 255, 111, 170;
  --accent-text: #1b0710;
}

body.drawer-open { overflow: hidden; }

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; text-decoration: none; }

.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;
}

.site-nav {
  position: relative;
  z-index: 20;
  height: 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.luma-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .12);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 160ms ease;
}

.luma-mark:hover { transform: translateY(-1px) rotate(-3deg); }

.site-nav nav { display: flex; align-items: center; gap: 8px; }

.site-nav nav a,
.site-nav nav button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav nav button[aria-pressed="true"],
.site-nav nav a:hover,
.site-nav nav button:hover { background: var(--surface-raised); color: var(--text); }

.site-nav nav button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 700; }

.nav-status {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.page-shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; }

.calendar-profile { padding: 24px 0 38px; }

.cover-art {
  position: relative;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 82% 35%, rgba(var(--accent-rgb), 0.18), transparent 0 16%, transparent 36%),
    radial-gradient(circle at 14% 82%, rgba(92, 104, 255, 0.18), transparent 0 12%, transparent 34%),
    #0b0b0b;
}

.cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, black, rgba(0,0,0,.4));
}

.cover-glow {
  position: absolute;
  right: 9%;
  top: 50%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 42% 58% 53% 47%;
  box-shadow:
    0 0 0 26px rgba(255,255,255,.018),
    0 0 0 58px rgba(255,255,255,.012),
    0 0 90px rgba(var(--accent-rgb), .12);
  transform: translateY(-50%) rotate(28deg);
}

.cover-word {
  position: absolute;
  left: 28px;
  bottom: 23px;
  color: rgba(255,255,255,.85);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 750;
  letter-spacing: -.055em;
}

.cover-coordinate {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(255,255,255,.43);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .11em;
}

.profile-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px 0 24px;
}

.calendar-avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--bg);
  border-radius: 22px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 30px rgba(0,0,0,.35), 0 0 30px rgba(var(--accent-rgb), .09);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease, transform 240ms cubic-bezier(.2,.8,.2,1);
}

.avatar-sz { position: relative; z-index: 1; font-size: 27px; font-weight: 900; letter-spacing: -.08em; }

.avatar-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,.07) 5px 6px);
}

.bookmark-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bookmark-button:hover { border-color: rgba(var(--accent-rgb), .45); background: var(--surface-hover); color: var(--accent); transform: translateY(-1px); }
.bookmark-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; }
.bookmark-button::after {
  content: attr(data-hint);
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: max-content;
  max-width: min(240px, 72vw);
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #202020;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0,0,0,.38);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease;
}
.bookmark-button.show-bookmark-hint::after { opacity: 1; transform: translateY(0) scale(1); }

.profile-copy { max-width: 680px; padding: 12px 24px 0; }

.profile-copy h1 { margin: 0; font-size: 36px; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }

.timezone-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.timezone-line svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.timezone-line span { color: #555; }

.profile-description { margin: 13px 0 0; color: var(--muted-strong); font-size: 15px; line-height: 1.65; }

.profile-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.profile-links strong { color: var(--text); font-weight: 600; }
.profile-links a:hover { color: var(--text); }

.events-section { margin: 0 calc(50% - 50vw); padding: 26px calc(50vw - 50%) 72px; border-top: 1px solid var(--line); }

.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 38px; }

.events-heading-row { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.events-heading-row h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }

.heading-tools { display: flex; align-items: center; }

.search-control {
  display: flex;
  align-items: center;
  width: 146px;
  height: 32px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: width 180ms ease, border-color 180ms ease;
}

.search-control:focus-within { width: 210px; border-color: var(--line-strong); }
.search-control svg { flex: 0 0 auto; width: 15px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-control input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-control input::placeholder { color: #676767; }

.category-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.filter-chip {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.filter-chip:hover { color: var(--text); border-color: var(--line-strong); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-text); font-weight: 650; }

.result-summary { display: flex; justify-content: space-between; margin: 20px 0 14px; color: #686868; font-size: 11px; }
.result-summary button { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: inherit; }
.result-summary button:hover { color: var(--text); }

.timeline-group { position: relative; padding: 0 0 30px 23px; }

.timeline-group::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -4px;
  left: 3px;
  border-left: 1px dashed rgba(255,255,255,.12);
}

.timeline-group:last-child::before { bottom: 30px; }

.timeline-date {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 13px;
  font-size: 15px;
  font-weight: 600;
}

.timeline-date::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -23px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #6c6c6c;
}

.timeline-date small { color: var(--muted); font-size: 12px; font-weight: 400; }
.event-stack { display: grid; gap: 12px; }

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  animation: card-in 360ms cubic-bezier(.2,.75,.25,1) both;
}

.event-card:hover { border-color: var(--line-strong); background: var(--surface-raised); transform: translateY(-1px); }

.event-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  width: 100%;
  min-height: 142px;
  gap: 18px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.event-copy { min-width: 0; padding: 2px 2px 1px; }
.event-time { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.event-title { margin: 0; font-size: 17px; font-weight: 620; line-height: 1.28; letter-spacing: -.018em; }
.event-organizer,
.event-place { margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.event-organizer::before { content: "●"; margin-right: 6px; color: var(--accent); font-size: 9px; }
.event-place::before { content: "⌖"; margin-right: 6px; color: #686868; }

.event-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }

.event-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9c9c9c;
  background: rgba(255,255,255,.025);
  font-size: 9px;
}

.event-tag[data-category="漫展"] { color: #c9b5ff; border-color: rgba(201,181,255,.24); }
.event-tag[data-category="艺术与文化"] { color: #e7c39f; border-color: rgba(231,195,159,.24); }
.event-tag[data-category="美食"] { color: #f2bf70; border-color: rgba(242,191,112,.24); }
.event-tag[data-category="科技"] { color: #79d2ee; border-color: rgba(121,210,238,.24); }
.event-tag[data-category="赛事"] { color: #aadd7d; border-color: rgba(170,221,125,.24); }
.event-tag[data-category="演出"] { color: #ef91ac; border-color: rgba(239,145,172,.24); }

.event-poster {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #292929, #121212);
}

.event-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-poster.no-image img { display: none; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #6e6e6e; font-size: 34px; font-weight: 750; }
.event-poster:not(.no-image) .poster-fallback { display: none; }

.calendar-sidebar { position: relative; }

.sidebar-actions { display: grid; grid-template-columns: 1fr 36px; gap: 8px; margin-bottom: 10px; }

.submit-button,
.github-button {
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
}

.submit-button:hover,
.github-button:hover { border-color: rgba(var(--accent-rgb), .42); background: var(--surface-raised); color: var(--accent); }
.submit-button svg,
.github-button svg { width: 14px; }
.submit-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.github-button svg { fill: currentColor; }

.mini-calendar {
  position: sticky;
  top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
}

.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 8px; }
.calendar-header strong { font-size: 16px; font-weight: 620; }
.calendar-nav { display: flex; align-items: center; gap: 2px; }
.calendar-nav button { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #777; cursor: pointer; font-size: 20px; line-height: 1; }
.calendar-nav button:hover { background: var(--surface-raised); color: var(--text); }
.calendar-nav #calendar-today { font-size: 0; }
.calendar-nav #calendar-today span { width: 7px; height: 7px; border-radius: 50%; background: #676767; }

.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 10px; }
.calendar-weekdays span { display: grid; height: 28px; place-items: center; color: var(--muted); font-size: 10px; }

.calendar-day {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-self: center;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c4c4c4;
  cursor: pointer;
  font-size: 11px;
}

.calendar-day:hover { background: var(--surface-raised); color: var(--text); }
.calendar-day.outside { color: #3e3e3e; }
.calendar-day.today { box-shadow: inset 0 0 0 1px #676767; color: var(--text); }
.calendar-day.selected { background: #ededed; color: #090909; font-weight: 700; }
.calendar-day.has-events::after { content: ""; position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: #72dfb4; box-shadow: 0 0 5px rgba(114, 223, 180, .42); }
.calendar-day.selected::after { background: #16805d; box-shadow: none; }

.time-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px 9px 9px; padding: 3px; border-radius: 7px; background: var(--surface); }
.time-mode-switch button { height: 29px; border: 0; border-radius: 6px; background: transparent; color: #6f6f6f; cursor: pointer; font-size: 11px; }
.time-mode-switch button[aria-pressed="true"] { background: #292929; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.5); }

.empty-state { margin: 18px 0 0 23px; padding: 54px 24px; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }
.empty-calendar-icon { display: grid; width: 42px; height: 42px; margin: 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--muted); font-size: 13px; }
.empty-state h3 { margin: 15px 0 6px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 16px; border: 0; background: none; color: var(--text); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.about-section { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: #5f5f5f; font-size: 10px; line-height: 1.5; }
.about-section p { margin: 0; }

.drawer-layer { position: fixed; inset: 0; z-index: 100; }
.drawer-layer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.72); cursor: default; animation: fade-in 180ms ease both; }

.event-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(530px, 42vw);
  min-width: 450px;
  overflow: hidden;
  border-left: 1px solid var(--line-strong);
  background: var(--drawer);
  box-shadow: -28px 0 80px rgba(0,0,0,.45);
  animation: drawer-in 280ms cubic-bezier(.22,.82,.24,1) both;
}

.drawer-toolbar { display: flex; align-items: center; height: 55px; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); background: rgba(26,26,26,.94); backdrop-filter: blur(14px); }
.drawer-toolbar button,
.drawer-toolbar a { display: inline-flex; align-items: center; justify-content: center; height: 32px; border: 0; border-radius: 8px; background: #242424; color: var(--muted-strong); cursor: pointer; font-size: 11px; }
.drawer-toolbar button:hover,
.drawer-toolbar a:hover { background: #303030; color: var(--text); }
.drawer-close { width: 32px; margin-right: 4px; }
.drawer-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-link { gap: 6px; padding: 0 11px; }
.copy-link svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.official-page { padding: 0 11px; }
.drawer-nav { display: flex; gap: 4px; margin-left: auto; }
.drawer-nav button { width: 32px; font-size: 15px; }
.drawer-nav button:disabled { opacity: .35; cursor: not-allowed; }

.drawer-scroll { height: calc(100vh - 55px); overflow-y: auto; overscroll-behavior: contain; }
.drawer-content,
.drawer-skeleton { width: min(100% - 32px, 480px); margin: 0 auto; padding: 26px 0 60px; }

.drawer-poster { display: block; width: min(100%, 330px); aspect-ratio: 1; margin: 0 auto 30px; object-fit: cover; border-radius: 12px; background: #222; box-shadow: 0 16px 45px rgba(0,0,0,.28); }
.drawer-poster-fallback { display: grid; width: min(100%, 330px); aspect-ratio: 1; margin: 0 auto 30px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #303030, #101010); color: #777; font-size: 72px; font-weight: 800; }
.drawer-content h2 { margin: 0; font-size: 25px; font-weight: 670; line-height: 1.16; letter-spacing: -.035em; }
.drawer-host { display: flex; align-items: center; gap: 8px; margin: 11px 0 0; color: var(--muted-strong); font-size: 12px; }
.drawer-host::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #816cf6); }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }

.drawer-facts { display: grid; gap: 14px; margin-top: 26px; }
.drawer-fact { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 11px; }
.drawer-fact-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #202020; color: #bdbdbd; font-size: 12px; }
.drawer-fact-copy { display: grid; gap: 3px; }
.drawer-fact-copy strong { font-size: 13px; font-weight: 600; }
.drawer-fact-copy span { color: var(--muted); font-size: 11px; line-height: 1.4; }

.source-panel { margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #202020; }
.source-panel-label { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.source-panel a { display: flex; justify-content: space-between; padding: 13px 12px; font-size: 12px; }
.source-panel a:hover { background: #252525; }

.drawer-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 10px; font-size: 14px; }
.drawer-section p { margin: 0; color: #b0b0b0; font-size: 12px; line-height: 1.75; white-space: pre-line; }
.drawer-disclaimer { margin-top: 22px; color: #666; font-size: 10px; line-height: 1.5; }

.drawer-skeleton > * { background: linear-gradient(90deg, #222, #2c2c2c, #222); background-size: 240% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-poster { width: min(100%, 330px); aspect-ratio: 1; margin: 0 auto 30px; border-radius: 12px; }
.skeleton-line { width: 62%; height: 18px; margin-top: 11px; border-radius: 5px; }
.skeleton-line.wide { width: 86%; height: 26px; }
.skeleton-block { height: 150px; margin-top: 30px; border-radius: 10px; }

.data-dialog { width: min(470px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 14px; background: #181818; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.data-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.data-dialog-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #252525; cursor: pointer; }
.dialog-eyebrow { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.data-dialog h2 { margin: 12px 0 18px; font-size: 25px; }
.data-dialog ul { margin: 0; padding-left: 20px; color: var(--muted-strong); font-size: 13px; line-height: 1.75; }

.calendar-profile,
.events-section,
.about-section {
  transition: opacity 170ms ease, transform 170ms ease, filter 170ms ease;
}

body.city-leaving .page-shell { pointer-events: none; }
body.city-leaving .calendar-profile,
body.city-leaving .events-section,
body.city-leaving .about-section {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(7px);
}

body.city-entering .calendar-profile { animation: city-content-in 420ms cubic-bezier(.2,.8,.2,1) both; }
body.city-entering .events-section { animation: city-content-in 460ms 45ms cubic-bezier(.2,.8,.2,1) both; }
body.city-entering .about-section { animation: city-content-in 460ms 80ms cubic-bezier(.2,.8,.2,1) both; }
body.city-entering .calendar-avatar { animation: city-avatar-pop 460ms cubic-bezier(.18,.85,.22,1.2) both; }

@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .65; } }
@keyframes shimmer { to { background-position: -240% 0; } }
@keyframes city-content-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes city-avatar-pop {
  from { opacity: .55; transform: translateY(7px) scale(.92) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@media (max-width: 760px) {
  .site-nav-inner { grid-template-columns: auto 1fr; }
  .site-nav nav { justify-self: end; }
  .nav-status { display: none; }
  .page-shell { width: min(100% - 24px, 620px); }
  .calendar-profile { padding-top: 12px; }
  .cover-art { height: 176px; border-radius: 10px; }
  .cover-coordinate { display: none; }
  .cover-word { left: 18px; bottom: 16px; font-size: 31px; }
  .profile-topline { height: 42px; padding-inline: 8px; }
  .calendar-avatar { width: 76px; height: 76px; border-radius: 18px; }
  .profile-copy { padding: 9px 8px 0; }
  .profile-copy h1 { font-size: 30px; }
  .profile-description { font-size: 14px; }
  .events-section { padding-top: 22px; }
  .events-layout { display: flex; flex-direction: column; gap: 18px; }
  .calendar-sidebar { order: -1; }
  .sidebar-actions { display: grid; margin-bottom: 8px; }
  .mini-calendar { position: static; }
  .events-heading-row { margin-top: 4px; }
  .search-control { width: 116px; }
  .search-control:focus-within { width: 154px; }
  .category-filters { flex-wrap: nowrap; margin-right: calc(50% - 50vw); padding-right: 12px; overflow-x: auto; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .event-card-main { grid-template-columns: minmax(0, 1fr) 96px; min-height: 120px; gap: 11px; padding: 10px; }
  .event-poster { min-height: 96px; }
  .event-title { font-size: 15px; }
  .event-organizer,
  .event-place { font-size: 11px; }
  .event-tags { margin-top: 7px; }
  .event-tag { min-height: 18px; font-size: 8px; }
  .about-section { display: grid; }
  .event-drawer { width: 100%; min-width: 0; border-left: 0; }
  .drawer-toolbar { padding-inline: 10px; }
  .official-page { display: none !important; }
  .drawer-content,
  .drawer-skeleton { width: min(100% - 28px, 480px); }
  .drawer-poster,
  .drawer-poster-fallback,
  .skeleton-poster { width: min(100%, 360px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
