/* Events page: header, view switcher and the three views (Past · Live · Upcoming). */

.ewrap {
  position: relative;
  z-index: 6;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22vh 6vw 8vh;
}

.ehead {
  margin-bottom: 8vh;
}

.ehead h1 {
  line-height: 0.98;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.ehead h1 i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-pale);
  opacity: 1;
}

.ehead p {
  max-width: 560px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 1.6rem;
  font-size: 1.1rem;
}

.egroup {
  scroll-margin-top: 90px;
  margin-bottom: 9vh;
}

/* ── View switcher ──────────────────────────────────────────────────── */

.etabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 7vh;
  padding: 6px;
  border: 1px solid var(--w10);
  border-radius: 100px;
  background: rgba(16, 17, 24, 0.78);
}

.etab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition:
    color 0.3s,
    background 0.3s;
}

.etab b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.etab:hover {
  color: #fff;
}

.etab.active {
  background: #fff;
  color: #0a0b10;
}

.etab.active b {
  color: rgba(10, 11, 16, 0.6);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w30);
}

.etab.has-events .pulse {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: livepulse 1.6s infinite;
}

@keyframes livepulse {
  50% {
    opacity: 0.25;
  }
}

/* ── A view ─────────────────────────────────────────────────────────── */

.eview {
  margin-bottom: 9vh;
}

.eview[hidden] {
  display: none;
}

.eview-head {
  margin-bottom: 5vh;
}

.eview-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.eview-head h2 i {
  color: var(--accent-pale);
}

.eview-head p {
  margin-top: 0.8rem;
  color: var(--text-2);
  font-size: 1.05rem;
}

.erows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── One event, full width ──────────────────────────────────────────── */

.erow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--w10);
  border-radius: 32px;
  background: rgba(16, 17, 24, 0.6);
}

.erow.live {
  border-color: var(--accent-50);
}

.erow.past {
  opacity: 0.86;
}

.erow-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  cursor: none;
  transition: transform 0.8s var(--ease);
}

.erow-art:hover {
  transform: scale(1.015);
}

.erow-art .type {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 8px 12px;
  border: 1px solid var(--w30);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.7);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #fff;
  white-space: nowrap;
}

.erow-body {
  padding-right: 16px;
}

.erow-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.erow-tagline {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--accent-pale);
}

.erow-blurb {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--text);
  line-height: 1.65;
}

.erow-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 26px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--w10);
}

.erow-facts dt {
  margin-bottom: 4px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pale);
}

.erow-facts dd {
  color: #fff;
  line-height: 1.45;
}

.erow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Empty view ─────────────────────────────────────────────────────── */

.eempty {
  padding: 9vh 24px;
  border: 1px dashed var(--w18);
  border-radius: 32px;
  text-align: center;
}

.eempty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.eempty p {
  margin-top: 0.8rem;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .erow {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
    border-radius: 26px;
  }

  .erow-art {
    aspect-ratio: 16 / 10;
  }

  .erow-body {
    padding: 0 8px 12px;
  }
}

@media (max-width: 600px) {
  .ewrap {
    padding: 16vh 20px 6vh;
  }

  .ehead h1 {
    font-size: 3rem;
  }

  .ehead {
    margin-bottom: 5vh;
  }

  .egroup {
    margin-bottom: 7vh;
  }

  .etabs {
    display: flex;
    margin-bottom: 5vh;
  }

  .etab {
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.88rem;
    gap: 7px;
  }

  .erow-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .erow-actions .btn-main,
  .erow-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
