* { margin: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(120% 100% at 50% 0%, #12314a 0%, #0a1622 60%, #070f18 100%);
  color: #eaf2f8;
  -webkit-user-select: none; user-select: none;
  /* respect the iPhone notch / home indicator */
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: flex; align-items: flex-start; justify-content: center;
}

.card {
  width: 100%; max-width: 460px;
  background: rgba(11, 30, 46, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.head .brand { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: #7fb2d6; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.arrow, .date, .close {
  font: inherit; color: #cfe0ec; background: rgba(255, 255, 255, 0.07);
  border: none; cursor: pointer; border-radius: 8px;
}
.arrow { width: 34px; height: 34px; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.arrow:active { background: rgba(255, 255, 255, 0.18); }
.date { height: 34px; padding: 0 12px; font-size: 13px; min-width: 96px; }
.date .today { color: #7fb2d6; font-weight: 600; }

.shows { display: flex; flex-direction: column; gap: 14px; }
.show { display: flex; flex-direction: column; gap: 3px; }
.show .title { font-size: 17px; font-weight: 700; }
.show .venue {
  font-size: 15px; color: #cfe0ec; cursor: pointer; text-align: left;
  background: none; border: none; padding: 0; font-family: inherit;
}
.show .venue:active { color: #fff; }
.show .venue .pin { text-decoration: underline; text-decoration-color: rgba(207,224,236,0.35); }
.show .time { font-size: 15px; color: #ffd9a8; font-variant-numeric: tabular-nums; }
.show .drive { font-size: 13px; color: #8fa6b8; font-variant-numeric: tabular-nums; }

.empty { font-size: 15px; color: #9fb3c4; }
.empty .kicker { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #7fb2d6; margin-bottom: 8px; }

.foot { margin-top: 14px; font-size: 11px; color: #5d7488; text-align: center; }
.foot a { color: #7fb2d6; }

/* iOS install hint */
.ios-hint {
  position: fixed; left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  background: rgba(29, 111, 184, 0.97); color: #fff;
  border-radius: 14px; padding: 12px 12px 12px 14px;
  font-size: 13px; line-height: 1.3; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  z-index: 50;
}
.ios-hint .share { flex: 0 0 auto; }
.ios-hint b { font-weight: 700; }
.ios-hint .x {
  flex: 0 0 auto; margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.18);
  font: inherit; font-size: 13px;
}

/* Calendar popover */
.cal { padding: 2px 0 4px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 14px; font-weight: 600; color: #eaf2f8; }
.cal-nav {
  width: 34px; height: 34px; font-size: 20px; line-height: 1; display: grid; place-items: center;
  border: none; border-radius: 8px; cursor: pointer; color: #cfe0ec; background: rgba(255,255,255,0.07);
}
.cal-nav:active { background: rgba(255,255,255,0.18); }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; color: #6f8597; }
.cal-day {
  aspect-ratio: 1 / 1; min-height: 34px; border: none; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; color: #eaf2f8; background: rgba(255,255,255,0.05);
}
.cal-day.blank { background: none; pointer-events: none; }
.cal-day:active { background: rgba(255,255,255,0.2); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px #7fb2d6; color: #cfe6f7; }
.cal-day.is-sel { background: #1d6fb8; color: #fff; font-weight: 700; }
.cal-today {
  margin-top: 10px; width: 100%; padding: 9px; border: none; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13px; color: #cfe0ec; background: rgba(255,255,255,0.07);
}
.cal-today:active { background: rgba(255,255,255,0.18); }
