/* Event overlay */

.ov {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--ease),
    visibility 0s 0.5s;
}

.ov.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease);
}

.ov-bg {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ov-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 32px;
  border: 1px solid var(--w10);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(40px) scale(0.97);
  filter: blur(8px);
  transition:
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--w18) transparent;
  background: rgba(9, 9, 11, 0.96);
}

.ov.open .ov-panel {
  transform: none;
  filter: none;
}

.ov-x {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--w18);
  transition: all 0.5s var(--ease);
}

.ov-x span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ov-x span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ov-x:hover {
  background: #fff;
  border-color: #fff;
  transform: rotate(90deg);
}

.ov-x:hover span {
  background: #050505;
}

.ov-hero {
  padding: 56px 56px 40px;
  position: relative;
}

.ov-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.35) 0%, rgba(9, 9, 11, 0.6) 45%, rgba(9, 9, 11, 0.98) 100%);
}

.ov-hero > * {
  position: relative;
  z-index: 1;
}

.ov-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.ov-type {
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid var(--cool-25);
  color: #fff;
  border-color: var(--w30);
  background: rgba(5, 5, 5, 0.7);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 11.5px;
}

.ov-date {
  font-size: 12.5px;
  color: var(--accent-soft);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Events with artwork get a taller hero so the image can breathe. */
.ov-hero.has-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}

.ov-status {
  padding: 6px 10px;
  border: 1px solid var(--w18);
  border-radius: 100px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ov-status.live {
  border-color: var(--accent-50);
  background: var(--accent-12);
  color: #fff;
}

.ov-hero h2 {
  line-height: 1;
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

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

.ov-blurb {
  margin-top: 16px;
  max-width: 56ch;
  line-height: 1.6;
  color: var(--text);
  font-size: 1.12rem;
}

.ov-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ov-tags span {
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--w10);
  font-size: 11.5px;
  color: #fff;
  border-color: var(--w18);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.ov-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  padding: 8px 56px 56px;
}

.ov-desc {
  line-height: 1.75;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.06rem;
}

.ov-main h4 {
  font-weight: 500;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-pale);
  margin: 30px 0 12px;
}

.ov-agenda {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ov-agenda li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--w05);
  line-height: 1.5;
  color: var(--text);
  font-size: 1.02rem;
}

.ov-agenda li b {
  padding-top: 3px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-pale);
}

.ov-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ov-list li {
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
  color: var(--text);
  font-size: 1.02rem;
}

.ov-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.ov-people {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ov-people div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 100px;
  border: 1px solid var(--w10);
  background: var(--w05);
}

.ov-people i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-25), transparent 70%);
  border: 1px solid var(--accent-25);
}

.ov-people span {
  display: flex;
  flex-direction: column;
  color: var(--text-2);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.ov-people b {
  color: #fff;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.ov-side {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--w10);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--w18);
}

.ov-side dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

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

.ov-side dd {
  color: #fff;
  line-height: 1.5;
  font-size: 1.06rem;
}

.ov-apply {
  width: 100%;
  justify-content: center;
  padding: 1.2rem 2rem;
}

.ov-cal {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 1.1rem 2rem;
}

.ov-note {
  margin-top: 16px;
  line-height: 1.7;
  color: var(--text-2);
  text-transform: none;
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 12.5px;
}

html.ov-lock {
  overflow: hidden;
}

.ov-notice {
  padding: 12px 14px;
  border: 1px solid var(--accent-25);
  border-radius: 12px;
  background: var(--accent-05);
  color: #fff;
}

.ov-poster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--w10);
  border-radius: 16px;
  background: var(--w05);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.4s;
}

.ov-poster img {
  width: 54px;
  height: 81px;
  border-radius: 8px;
  object-fit: cover;
}

.ov-poster:hover {
  border-color: var(--accent-50);
}

@media (max-width: 800px) {
  .ov-hero {
    padding: 44px 24px 28px;
  }

  .ov-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 32px;
    gap: 24px;
  }

  .ov-agenda li {
    grid-template-columns: 1fr;
  }

  .ov-side {
    position: static;
  }
}

@media (max-width: 600px) {
  .ov {
    padding: 10px;
  }

  .ov-panel {
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .ov-x {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .ov-hero {
    padding: 56px 20px 24px;
  }

  .ov-hero h2 {
    font-size: 2rem;
  }

  .ov-grid {
    padding: 0 20px 28px;
  }

  .ov-side {
    padding: 20px;
  }
}
