:root {
  color-scheme: dark;
  --ink: #f7f1df;
  --muted: #c8bfa7;
  --bg: #11100e;
  --panel: #1c1915;
  --line: rgba(247, 241, 223, 0.16);
  --gold: #e7c36a;
  --coral: #f27961;
  --teal: #58c1b5;
  --green: #7bc97f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body.map-open {
  overflow: hidden;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.92);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.95;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a, .actions a, .profile-card a, footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
}

nav a:hover, nav a[aria-current="page"], .actions a:hover, .profile-card a:hover, footer a:hover {
  border-color: var(--gold);
  color: #11100e;
  background: var(--gold);
}

main {
  max-width: 1420px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.summary-band div {
  min-height: 86px;
  padding: 18px;
  background: #161411;
}

.summary-band strong {
  display: block;
  color: var(--gold);
  font-size: 24px;
}

.summary-band span {
  color: var(--muted);
  font-size: 13px;
}

.unmatched {
  margin-bottom: 28px;
  padding: 14px 16px;
  border-left: 4px solid var(--coral);
  background: rgba(242, 121, 97, 0.12);
}

.lineup-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 0 0 30px;
}

.lineup-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.lineup-intro p {
  max-width: 780px;
  color: var(--muted);
}

.lineup-day-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lineup-day-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
}

.lineup-day-nav a:hover {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
}

.lineup-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lineup-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.lineup-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  color: var(--gold);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  background: #161411;
}

.lineup-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.lineup-table td:first-child {
  width: 140px;
  color: var(--ink);
  white-space: nowrap;
}

.lineup-table td:nth-child(2) {
  width: 210px;
  color: var(--teal);
  font-weight: 800;
}

.lineup-table b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.lineup-table span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stage-browser {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stage-picker {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-picker label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-picker input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #11100e;
  font: inherit;
}

.stage-buttons {
  display: grid;
  gap: 8px;
}

.stage-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.stage-choice strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stage-choice span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stage-choice:hover,
.stage-choice.active {
  border-color: var(--gold);
  background: rgba(231, 195, 106, 0.14);
}

.stage-detail {
  min-width: 0;
}

.stage-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-detail-head span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-detail-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.stage-detail-head > strong {
  color: var(--teal);
}

.stage-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stage-day-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-day-card h3 {
  margin-bottom: 12px;
  color: var(--gold);
}

.stage-day-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-day-card li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.stage-day-card time {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.stage-day-card strong {
  overflow-wrap: anywhere;
}

.stage-day-card span {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.empty-note,
.muted-row {
  color: var(--muted);
}

.map-main {
  max-width: none;
  padding: 0 0 64px;
}

.map-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px) 24px;
}

.map-intro h2,
.practical-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
}

.map-intro p,
.source-note {
  color: var(--muted);
}

.map-stage {
  position: relative;
  width: 100%;
  min-height: 680px;
  height: 78vh;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #11100e;
}

#stage-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.map-controls {
  z-index: 2;
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-controls button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background: rgba(17, 16, 14, 0.76);
  cursor: pointer;
}

.map-controls button.active,
.map-controls button:hover {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
}

.map-detail {
  z-index: 2;
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100% - 96px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 25, 21, 0.9);
  backdrop-filter: blur(14px);
}

.map-detail span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-detail strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 24px;
}

.map-detail ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.map-detail li + li {
  margin-top: 8px;
}

.map-detail em {
  display: block;
  color: var(--ink);
  font-style: normal;
}

.map-list,
.map-source-block {
  max-width: 1420px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 0;
}

.stage-map-grid,
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stage-map-card,
.fact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-map-card {
  padding: 18px;
}

.stage-map-card h3,
.fact-card h3 {
  margin-bottom: 8px;
}

.stage-map-card p,
.stage-note,
.fact-card li,
.fact-card dd,
.fact-card dt,
.map-source-block p {
  color: var(--muted);
}

.stage-map-card ul,
.fact-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.stage-map-card li + li,
.fact-card li + li {
  margin-top: 8px;
}

.stage-map-card li span {
  display: block;
  color: var(--ink);
}

.practical-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 24px;
  align-items: center;
  padding: 28px 0 36px;
}

.practical-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-callout {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 22px;
}

.hero-callout p {
  color: var(--muted);
}

.hero-callout a,
.camping-map-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
}

.hero-callout a:hover,
.camping-map-actions a:hover {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
}

.camping-map-section {
  padding: 12px 0 40px;
}

.camping-map-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11100e;
  cursor: zoom-in;
}

.camping-map-button img {
  display: block;
  width: 100%;
}

.camping-map-button span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #11100e;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.camping-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.map-lightbox[hidden] {
  display: none;
}

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(17, 16, 14, 0.96);
}

.map-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(12px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
  background: #11100e;
}

.map-lightbox-bar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-lightbox-bar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.map-lightbox-bar button:hover {
  color: #11100e;
  border-color: var(--gold);
  background: var(--gold);
}

.map-zoom-viewport {
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.map-zoom-viewport:active {
  cursor: grabbing;
}

.map-zoom-viewport img {
  display: block;
  width: min(1800px, 96vw);
  max-width: none;
  margin: 40px auto;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.fact-card {
  padding: 18px;
}

.highlight-card {
  border-color: rgba(231, 195, 106, 0.42);
  background: linear-gradient(135deg, rgba(231, 195, 106, 0.12), rgba(88, 193, 181, 0.08)), var(--panel);
}

.fact-card dl {
  margin: 0;
}

.fact-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.fact-card dt {
  font-size: 13px;
}

.fact-card dd {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.day-section {
  padding: 12px 0 40px;
}

.day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.day-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 42px);
}

.day-heading span {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.artist-card, .profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.artist-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 210px;
}

.image-wrap {
  position: relative;
  min-height: 100%;
  background: #242019;
}

.image-wrap img, .profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
}

.time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.time-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #11100e;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.time-row span + span {
  color: var(--ink);
  background: rgba(88, 193, 181, 0.18);
  border: 1px solid rgba(88, 193, 181, 0.4);
}

.artist-card h3 {
  margin-bottom: 6px;
  font-size: 25px;
  line-height: 1.04;
}

.set-name, .date-line {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.conflict {
  margin: auto 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(242, 121, 97, 0.35);
  border-radius: 6px;
  color: #ffd4cc;
  background: rgba(242, 121, 97, 0.1);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.icon-link {
  width: 38px;
  padding: 0;
}

.match-note {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.profiles {
  padding-top: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 150px;
}

.profile-card > div {
  padding: 14px;
}

.profile-card h3 {
  margin-bottom: 8px;
}

.profile-card ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.profile-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.profile-card span {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .schedule-grid,
  .stage-map-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-browser,
  .stage-days {
    grid-template-columns: 1fr;
  }

  .stage-picker {
    position: static;
    max-height: none;
  }

  .practical-hero,
  .map-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-grid,
  .profile-grid,
  .stage-map-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .lineup-intro {
    grid-template-columns: 1fr;
  }

  .lineup-day-nav {
    justify-content: flex-start;
  }

  .map-stage {
    min-height: 560px;
    height: 72vh;
  }

  .map-detail {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: 42%;
  }

  .map-controls {
    top: 12px;
    left: 12px;
  }

  .artist-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .artist-card h3 {
    font-size: 21px;
  }

  .time-row span {
    max-width: 100%;
  }

  .lineup-table {
    min-width: 680px;
  }

  .stage-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .camping-map-button span {
    right: 10px;
    bottom: 10px;
  }

  .map-lightbox-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-zoom-viewport img {
    width: min(1300px, 96vw);
    margin: 24px auto;
  }
}

@media (max-width: 460px) {
  main { padding-inline: 12px; }

  .artist-card {
    grid-template-columns: 1fr;
  }

  .image-wrap {
    aspect-ratio: 16 / 10;
  }

  .profile-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
