body {
  min-height: 100vh !important;
  display: block !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 8% 5%, rgba(242, 118, 34, .08), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(129, 69, 214, .08), transparent 25rem),
    #fbfaff !important;
}

.site-header {
  height: 68px;
  padding: 0 max(20px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(129, 69, 214, .1);
  background: rgba(255, 255, 255, .92);
}

.site-header .brand {
  margin: 0;
  color: #15295d;
  font-size: 1.15rem;
  font-weight: 950;
  text-decoration: none;
}

.home-link {
  color: #8145d6;
  font-weight: 800;
  text-decoration: none;
}

main {
  width: min(1040px, calc(100% - 32px)) !important;
  margin: auto !important;
  padding: 40px 0 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: left !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 8px 0;
  color: #18234b;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.hero > p:last-child {
  margin: 12px auto 0;
  color: #62677b;
}

.filters {
  margin: 28px auto 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid #ebe5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(74, 54, 108, .07);
}

label {
  display: grid;
  gap: 6px;
  color: #62677b;
  font-size: .76rem;
  font-weight: 850;
}

input,
select,
button,
.action {
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 12px;
  color: #18234b;
  border: 1px solid #dcd4e7;
  background: #fff;
}

button,
.action {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f27622, #ef3f8f, #8145d6);
}

.status {
  padding: 28px;
  color: #62677b;
  text-align: center;
}

.status.error {
  color: #a22a45;
}

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

.event-card {
  min-height: 190px;
  display: block;
  overflow: hidden;
  border: 1px solid #ebe5f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(74, 54, 108, .09);
}

.event-card.has-poster {
  display: grid;
  grid-template-columns: minmax(128px, 36%) minmax(0, 1fr);
}

.event-media {
  min-height: 190px;
  overflow: hidden;
  background: #f4f0f8;
}

.event-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-body {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.event-date {
  margin: 0;
  color: #ef3f8f;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-card h2 {
  margin: 5px 0 7px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.event-meta {
  margin: 0;
  color: #62677b;
  font-size: .86rem;
}

.event-description {
  margin: 10px 0;
  overflow: hidden;
  display: -webkit-box;
  color: #474c60;
  font-size: .9rem;
  line-height: 1.42;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.interest-count {
  margin: 0 0 8px;
  color: #8145d6;
  font-size: .8rem;
  font-weight: 850;
}

.event-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-actions .action {
  min-height: 36px;
  padding: 0 11px;
  font-size: .8rem;
}

.event-actions .secondary {
  color: #8145d6;
  border: 1px solid #d8c7ed;
  background: #fff;
}

.event-price {
  margin: 8px 0 0;
  color: #8145d6;
  font-weight: 950;
}

.detail-shell {
  width: min(820px, calc(100% - 32px));
  margin: 40px auto;
}

.detail-card {
  overflow: hidden;
  border: 1px solid #ebe5f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(74, 54, 108, .1);
}

.detail-media {
  width: 100%;
  height: min(42vw, 360px);
}

.detail-card .event-body {
  padding: clamp(20px, 5vw, 40px);
}

.detail-card .event-description {
  display: block;
  white-space: pre-wrap;
}

.back-link {
  margin-bottom: 18px;
  display: inline-block;
  color: #8145d6;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 760px) {
  main {
    padding-top: 30px !important;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters button {
    grid-column: 1 / -1;
  }

  .event-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .filters button {
    grid-column: auto;
  }

  .event-card.has-poster {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .event-media {
    min-height: 220px;
  }

  .event-body {
    padding: 14px;
  }

  .site-header {
    height: 62px;
  }
}
