:root {
  color-scheme: light;
  --ink: #19324a;
  --muted: #637083;
  --paper: #fffdf6;
  --white: #ffffff;
  --sky: #d8f6ff;
  --blue: #1d6fb8;
  --teal: #0f9f9a;
  --red: #e63235;
  --yellow: #ffd442;
  --green: #77bd43;
  --line: rgba(25, 50, 74, 0.14);
  --shadow: 0 18px 50px rgba(25, 50, 74, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--sky) 0, #f5fbff 380px, var(--paper) 381px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.cover {
  background: var(--sky);
  border-bottom: 6px solid var(--green);
}

.cover img {
  display: block;
  width: 100%;
  height: clamp(210px, 42vw, 500px);
  object-fit: cover;
  object-position: center;
}

.compact-cover img {
  height: clamp(150px, 28vw, 320px);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.intro {
  padding: 12px 0 20px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #4c3210;
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 950;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--red);
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-weight: 850;
  line-height: 1.16;
}

.intro-location {
  max-width: 820px;
  margin: 12px 0 0;
  color: #304157;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
}

.program-band,
.details-band {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.live-band {
  border-top: 7px solid var(--teal);
}

.details-band {
  border-top: 7px solid var(--yellow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.kicker {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

#now-label {
  flex: 0 0 auto;
  max-width: 270px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-card,
.detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.event-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.event-card.empty {
  background: #f8fbfc;
}

.stage-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stage-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: var(--stage-color, var(--teal));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-color, var(--teal)) 20%, transparent);
}

.event-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.13;
  font-weight: 950;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.event-meta span {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(29, 111, 184, 0.09);
}

.event-description {
  margin: 0;
  color: #304157;
  white-space: pre-line;
}

.event-description.preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.empty .event-description {
  color: var(--muted);
  font-weight: 700;
}

.more-link,
.back-link,
.programs-button,
.ticket-button,
.map-button,
.activities-button,
.dm-activities-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: inherit;
  text-decoration: none;
}

.more-link:focus-visible,
.back-link:focus-visible,
.programs-button:focus-visible,
.ticket-button:focus-visible,
.map-button:focus-visible,
.activities-button:focus-visible,
.dm-activities-button:focus-visible,
.day-option:focus-visible,
.schedule-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.next-preview {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.next-label {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.next-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.next-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  padding: 15px;
}

.detail-card.wide {
  grid-column: 1 / -1;
}

.programs-button {
  background: var(--teal);
}

.ticket-button {
  background: var(--blue);
  color: var(--white);
}

.map-button {
  background: var(--yellow);
  color: var(--white);
}

.activities-button {
  background: var(--red);
  color: var(--white);
}

.dm-activities-button {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--green);
  background: rgba(255, 255, 255, 0.5);
  color: var(--green);
}

.dm-button-icon {
  width: 34px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
}

.ticket-icon,
.button-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.detail-label {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-value {
  margin: 0;
  color: #2e3d4f;
  font-size: 1rem;
  white-space: pre-line;
}

.back-link {
  margin: 0 0 16px;
  background: var(--teal);
}

.detail-page {
  max-width: 820px;
  border-top-color: var(--stage-color, var(--teal));
}

.detail-title {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-description {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.programs-page {
  max-width: 900px;
}

.activities-page {
  max-width: 1040px;
}

.map-page {
  max-width: 1040px;
}

.dm-activities-page {
  max-width: 1040px;
}

.dm-band {
  border-top: 7px solid var(--blue);
}

.dm-band .kicker {
  color: var(--blue);
}

.map-frame {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #edf6f8;
}

.day-option {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.day-option[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(29, 111, 184, 0.18);
}

.program-list {
  display: grid;
  gap: 16px;
}

.schedule-stage {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--stage-color, var(--teal));
  border-radius: 8px;
  background: var(--white);
}

.schedule-stage-title {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.schedule-link {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 50, 74, 0.1);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  text-decoration: none;
}

.schedule-time {
  color: var(--muted);
  font-weight: 950;
}

.schedule-title {
  min-width: 0;
  font-weight: 900;
}

.activities-list {
  display: grid;
  gap: 12px;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dm-activities-list .activity-card {
  border-left: 5px solid var(--blue);
}

.activity-title {
  margin: 0;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.22;
  font-weight: 950;
}

.activity-description {
  margin: 0;
  color: #304157;
  white-space: pre-line;
}

.empty-description {
  min-height: 1.5em;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, var(--sky) 0, #f6fbff 260px, var(--paper) 261px),
      var(--paper);
  }

  main {
    width: min(100% - 24px, 620px);
    padding-bottom: 34px;
  }

  .cover img {
    height: clamp(190px, 48vw, 260px);
  }

  .compact-cover img {
    height: clamp(135px, 38vw, 210px);
  }

  .section-heading {
    display: block;
  }

  #now-label {
    display: block;
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .stage-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .map-frame {
    height: 72vh;
    min-height: 420px;
  }

  .detail-card.wide {
    grid-column: auto;
  }

  .event-card,
  .detail-card {
    padding: 14px;
  }

  .day-picker {
    border-radius: 8px;
  }

  .schedule-stage {
    padding: 14px;
  }

  .schedule-link {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .more-link,
  .back-link,
  .programs-button,
  .ticket-button,
  .map-button,
  .activities-button,
  .dm-activities-button {
    width: 100%;
  }
}
