/* v0.9.13 — stable multi-filters and a proper overlay for landscape/short posters. */
#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain {
  display: block !important;
  position: relative !important;
  padding: 22px !important;
  overflow: hidden !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain .te-poster-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  z-index: 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain .te-poster-shade {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain .te-poster-kicker {
  position: absolute !important;
  z-index: 2 !important;
  top: 24px !important;
  right: 22px !important;
  left: 22px !important;
  margin: 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain strong {
  position: absolute !important;
  z-index: 2 !important;
  top: 52px !important;
  right: 20px !important;
  left: 22px !important;
  margin: 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster.te-poster-contain .te-poster-type {
  position: absolute !important;
  z-index: 3 !important;
}

/* Two lines remain relaxed; a one-line title is then enlarged by the existing JS class. */
#ajax-content-wrap .container.main-content .te-classic-shell .te-card-body h3 {
  max-height: 2.4em !important;
  padding: 4px 0 3px !important;
  font-size: 25.5px !important;
  line-height: 1.1 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-card-body h3.te-title-single-line {
  padding: 4px 0 3px !important;
  font-size: 30px !important;
  line-height: 1.1 !important;
}

/* Active-filter UI is physically removed by JS when empty; these guards prevent residual height. */
#ajax-content-wrap .container.main-content .te-classic-shell .te-active-filters:empty,
#ajax-content-wrap .container.main-content .te-classic-shell .te-active-filters[hidden] {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-hero {
  min-height: 0 !important;
  height: auto !important;
  contain: none !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-hero h1 {
  position: relative !important;
  z-index: 3 !important;
  overflow: visible !important;
  padding: .08em 0 .12em !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-events {
  padding-top: 28px !important;
}

@media (max-width: 560px) {
  #ajax-content-wrap .container.main-content .te-classic-shell .te-card-body h3 { font-size: 25px !important; }
  #ajax-content-wrap .container.main-content .te-classic-shell .te-card-body h3.te-title-single-line { font-size: 29px !important; }
}
/* One shared “supercircle” geometry for every visible interface box. */
#ajax-content-wrap .container.main-content .te-classic-shell {
  --te-super-radius: 28px;
  --te-super-radius-small: 20px;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-card,
#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-note,
#ajax-content-wrap .container.main-content .te-classic-shell .te-hero-report,
#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-empty,
#ajax-content-wrap .container.main-content .te-classic-shell .te-proto-status,
#ajax-content-wrap .container.main-content .te-classic-shell .te-map,
#ajax-content-wrap .container.main-content .te-classic-dialog,
.te-location-map-dialog {
  border-radius: var(--te-super-radius) !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-classic-card {
  overflow: hidden !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster,
#ajax-content-wrap .container.main-content .te-classic-shell .te-poster .te-poster-image,
#ajax-content-wrap .container.main-content .te-classic-shell .te-poster .te-poster-shade {
  border-radius: var(--te-super-radius) var(--te-super-radius) 0 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell button,
#ajax-content-wrap .container.main-content .te-classic-shell select,
#ajax-content-wrap .container.main-content .te-classic-shell .te-event-link,
#ajax-content-wrap .container.main-content .te-classic-shell .te-dialog-link,
#ajax-content-wrap .container.main-content .te-classic-shell .te-venue,
#ajax-content-wrap .container.main-content .te-classic-shell .te-filter-tag,
#ajax-content-wrap .container.main-content .te-classic-shell .te-active-filter,
.te-location-map-dialog__close {
  border-radius: 999px !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-active-filter-close {
  border-radius: 0 999px 999px 0 !important;
}

#ajax-content-wrap .container.main-content .te-classic-shell .te-poster-type {
  border-radius: 999px !important;
}