/* Feature cards layered on the globe: follows, time capsule, passport, change notices. */

/* ---- Follow star on the artist list ---- */

.artist-item { position: relative; }
.artist-item .artist { padding-right: 46px; }

.follow-star {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.follow-star:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.follow-star[aria-pressed="true"] { color: #ffd23f; }
.follow-star:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }

/* ---- Time capsule and "what changed" floating cards ---- */

.capsule-btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.capsule-btn { display: inline-flex; align-items: center; gap: 6px; }
.capsule-icon { flex: none; }
.capsule-btn:hover, .capsule-btn.active { background: var(--accent); color: var(--on-accent); }
.capsule-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.capsule, .updates {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.capsule[hidden], .updates[hidden] { display: none; }

.capsule {
  top: calc(var(--gutter) + 52px);
  right: var(--gutter);
  width: min(340px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 210px);
}

.capsule-bar { display: flex; align-items: center; gap: 6px; }

.capsule-date {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  color-scheme: dark;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.capsule-step {
  appearance: none;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.capsule-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.capsule-step:disabled { opacity: 0.35; cursor: default; }
.capsule-step:focus-visible, .capsule-date:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.capsule-summary { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--ink-dim); }
.capsule-hint { margin: 0; font-size: 12px; color: var(--ink-dim); }

.capsule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
}

.capsule-entry {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.capsule-entry:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--artist); }
.capsule-entry:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.capsule-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--artist);
  box-shadow: 0 0 8px var(--artist);
}

.capsule-entry-text { display: flex; flex-direction: column; min-width: 0; }
.capsule-entry-name { font-size: 14px; font-weight: 800; }
.capsule-entry-where { font-size: 12px; color: var(--ink-dim); overflow-wrap: anywhere; }

.updates {
  top: 116px;
  left: var(--gutter);
  width: min(320px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 270px);
  overflow-y: auto;
}

.updates-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.updates-body { display: flex; flex-direction: column; gap: 12px; }

.updates-artist {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--artist);
  text-underline-offset: 3px;
  cursor: pointer;
}

.updates-artist:focus-visible, .updates-dismiss:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.updates-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

.updates-badge {
  display: inline-block;
  min-width: 4.4em;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.updates-badge.added { background: #2fbf71; color: #06260f; }
.updates-badge.cancelled { background: #ff5a6e; color: #2a0309; }

.updates-dismiss {
  appearance: none;
  align-self: flex-end;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #101640;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- "I was there / I'm going" toggle on a show date (Details tab) ---- */

.passport-toggle {
  appearance: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.passport-toggle:hover { color: var(--ink); border-color: var(--ink-dim); }
.passport-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.passport-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.date-row .date-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Passport card (shares the card frame of the time capsule) ---- */

.passport-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.passport-title { margin: 0; font-size: 15px; font-weight: 800; }

.passport-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.passport-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.passport-stat-value { font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.passport-stat-label { font-size: 11px; color: var(--ink-dim); text-align: center; overflow-wrap: anywhere; }

.passport-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; }
.passport-section-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.passport-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.passport-empty { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.passport-when { margin-left: auto; flex: none; font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.passport-when.cancelled { padding: 1px 8px; border-radius: 999px; background: #ff5a6e; color: #2a0309; font-size: 11px; }

/* A show that was marked and later cancelled needs its own way out of the passport. */

.passport-row { display: flex; align-items: center; gap: 6px; }
.passport-row .capsule-entry { flex: 1; min-width: 0; }

.passport-remove {
  appearance: none;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.passport-remove:hover { background: rgba(255, 255, 255, 0.2); }
.passport-remove:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Tool buttons keep only their icons until the globe column is wide enough for the labels
   (the column grows when a side panel is collapsed; the labels need about 610px) ---- */

@container stage (max-width: 640px) {
  .tool-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---- Collapsible side panels (js/panel-toggles.js) ----
   A panel keeps its full width while its track shrinks, so it slides off screen instead of reflowing. */

#app { transition: grid-template-columns 0.28s ease; }
#app.left-collapsed { --left-track: 0px; }
#app.right-collapsed { --right-track: 0px; }
.panel-left { width: var(--left-w); justify-self: end; }
.panel-right { width: var(--right-w); justify-self: start; }

.edge-tab {
  appearance: none;
  position: absolute;
  bottom: var(--gutter);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
/* Bottom corners: the globe is round, so they never cover it. */
.edge-left { left: var(--gutter); }
.edge-right { right: var(--gutter); }
.edge-tab:hover { background: var(--accent); color: var(--on-accent); }
.edge-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.artists-head { display: none; }

@media (max-width: 860px) {
  .panel-left, .panel-right { width: auto; justify-self: stretch; }
  .edge-tab { display: none; }
  .artists-head {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .artists-head:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .artists-head-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
  .artists-head-name { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .artists-head-chevron { display: grid; color: var(--ink-dim); }
  .artists-head-chevron svg { transform: rotate(90deg); transition: transform 0.2s ease; }
  .artists-folded .artists-head-chevron svg { transform: rotate(-90deg); }
  /* The data credit (Wikipedia, OpenStreetMap) stays visible when the list is folded. */
  .artists-folded .panel-left > :not(.artists-head):not(.credits):not(.brand) { display: none; }
  .artists-folded .panel-left { padding-block: 12px; }
}

/* ---- Brand: site name with its BETA badge, first in the left column ---- */
.brand { display: flex; flex: none; align-items: center; gap: 9px; padding: 2px 4px 4px; }
.brand-mark { flex: none; filter: drop-shadow(0 0 8px rgba(122, 31, 255, 0.45)); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
/* Fixed brand colours on purpose: the accent changes with the artist, the badge must not. */
.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px 2px 9px;
  border: 1px solid rgba(169, 123, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(122, 31, 255, 0.34), rgba(59, 155, 255, 0.2));
  box-shadow: 0 0 12px rgba(122, 31, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #e9e0ff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  transform: translateY(-1px);
  user-select: none;
}
.gate-title .beta-badge { margin-left: 10px; vertical-align: middle; }

/* ---- Notice at the bottom of the details card: dates may change + report button ---- */
#panel-details:not([hidden]) { display: flex; flex-direction: column; }
.tour-notice {
  position: sticky;
  bottom: -16px;
  z-index: 1;
  margin: 18px -16px -16px;
  margin-top: auto;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.tour-notice-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.tour-notice-text { font-size: 12px; line-height: 1.4; color: var(--ink-dim); }
.report-open {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.report-open:hover, .report-open[aria-expanded="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.report-open:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.report-body:not([hidden]) { display: grid; gap: 8px; padding-top: 10px; }
.report-body [hidden] { display: none !important; }
.report-message { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-dim); }
.report-form { display: grid; gap: 8px; }
.report-body .comment-signin { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  .report-open { transition: none; }
  .follow-star, .capsule-btn, .capsule-entry, .passport-toggle { transition: none; }
  #app, .edge-tab, .artists-head-chevron svg { transition: none; }
}

/*
 * Touch screens: blurring what is behind a button means re-blurring the moving globe on every frame, which makes
 * iPhones stutter. A more solid background gives the same look without the cost.
 */
@media (hover: none) and (pointer: coarse) {
  :root { --glass: rgba(16, 22, 58, 0.86); }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
