:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f7;
  --bg-card: #f0f0f0;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.55);
  --dim: rgba(0, 0, 0, 0.35);
  --divider: rgba(0, 0, 0, 0.22);
  --hero-glow: rgba(0, 0, 0, 0.04);
  --show-bg: rgba(0, 0, 0, 0.02);
  --show-past-bg: rgba(0, 0, 0, 0.015);
  --show-shadow: rgba(0, 0, 0, 0.08);
  --icon-muted: rgba(0, 0, 0, 0.35);
  --icon-hover: #000;
  --icon-past-hover: rgba(0, 0, 0, 0.65);
  --grad-a: rgba(0, 0, 0, 0.03);
  --grad-b: rgba(59, 130, 246, 0.06);
  --grad-c: rgba(0, 0, 0, 0.02);
  --grad-d: rgba(139, 92, 246, 0.05);
  --grad-e: rgba(0, 0, 0, 0.025);
  --grad-f: rgba(0, 0, 0, 0.04);
  --overlay-top: rgba(255, 255, 255, 0.5);
  --overlay-mid: rgba(255, 255, 255, 0.2);
  --overlay-bottom: rgba(0, 0, 0, 0.04);
  --overlay-past-top: rgba(255, 255, 255, 0.4);
  --overlay-past-bottom: rgba(0, 0, 0, 0.03);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --max: 920px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font: 400 16px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--hero-glow), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

.tm-page {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.tm-page.is-booting .tm-hero,
.tm-page.is-booting #events-root {
  opacity: 0;
  transform: translateY(14px);
}

#events-root {
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.tm-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 2.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.tm-hero.is-visible {
  opacity: 1;
  transform: none;
}

.tm-brand {
  width: 100%;
  margin: 0;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.tm-logo-full {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  filter: invert(1);
}

.tm-tagline {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: clamp(0.72rem, 2.9vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.tm-hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.tm-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.tm-hero-icon:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.tm-hero-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.tm-artist-block {
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

.tm-artist-block.is-visible {
  opacity: 1;
  transform: none;
}

.tm-artist-name {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font: 600 1.35rem/1.2 var(--font);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.tm-artist-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.tm-past-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.tm-section-title--archive {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
  margin-bottom: 1rem;
}

.tm-section-title {
  font: 600 1.35rem/1.2 var(--font);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.tm-shows {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.tm-show {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: inset(0 round var(--radius));
  background: var(--show-bg);
  transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.tm-show::before {
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    var(--grad-a),
    var(--grad-b),
    var(--grad-c),
    var(--grad-d),
    var(--grad-e),
    var(--grad-f)
  );
  background-size: 320% 320%;
  filter: blur(34px);
  opacity: 0.5;
  animation: tm-show-gradient 28s linear infinite;
  pointer-events: none;
  z-index: 0;
  will-change: background-position;
}

.tm-show::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    var(--overlay-top) 0%,
    var(--overlay-mid) 45%,
    var(--overlay-bottom) 100%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.tm-shows li:nth-child(3n + 2) .tm-show::before { animation-delay: -9.5s; }
.tm-shows li:nth-child(3n) .tm-show::before { animation-delay: -19s; }

.tm-show:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--show-shadow);
}

.tm-show:hover::before {
  opacity: 0.62;
}

.tm-show:hover::after {
  opacity: 0.92;
}

@keyframes tm-show-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.tm-show-line {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  font: 600 0.95rem/1.35 var(--font);
  letter-spacing: 0.02em;
}

.tm-show-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: block;
  color: var(--icon-muted);
  opacity: 0.85;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s var(--ease);
}

.tm-show:hover .tm-show-icon {
  color: var(--icon-hover);
  opacity: 1;
  transform: translateX(1px);
}

.tm-past-year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.tm-past-year-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.72rem/1 var(--font);
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tm-past-year-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.tm-past-year-btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.tm-past-year-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.tm-past-empty {
  font: 400 0.78rem/1.4 var(--font);
  color: var(--dim);
  padding: 0.5rem 0 0.25rem;
}

.tm-past-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.tm-past-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font: 400 0.78rem/1.4 var(--font);
  color: var(--dim);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.tm-past-item:last-child {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .tm-page { width: min(100% - 1.5rem, var(--max)); padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-hero,
  .tm-artist-block {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tm-show::before {
    animation: none;
  }
}
