.square-shows-page {
  font-family: "Poppins", "Montserrat", sans-serif;
  color: var(--sq-text);
}

.square-shows-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.15rem 1.25rem 3.6rem;
}

.square-shows-hero {
  margin-bottom: 2.05rem;
}

.square-shows-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--sq-secondary);
  margin-bottom: 0.7rem;
}

.square-shows-title {
  font-size: clamp(2.35rem, 2.7vw + 1rem, 3.35rem);
  line-height: 0.96;
  margin: 0 0 1rem;
  color: var(--sq-deep);
  max-width: 18ch;
}

.square-shows-title span {
  background: linear-gradient(90deg, var(--sq-primary), var(--sq-primary-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.square-shows-lead {
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--sq-muted);
  margin: 0;
}

.square-shows-filters {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(253,251,255,0.97));
  border: 1px solid rgba(164, 122, 182, 0.22);
  border-radius: 26px;
  padding: 1.4rem;
  margin: 2.15rem 0 1.9rem;
  box-shadow: 0 18px 38px rgba(36, 22, 41, 0.07);
}

.square-shows-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: stretch;
}

.square-shows-filter-field {
  display: flex;
  flex-direction: column;
}

.square-shows-filter-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--sq-secondary);
}

.square-shows-filter-field input,
.square-shows-filter-field select {
  width: 100%;
  height: 49px;
  min-height: 49px;
  padding: 0 0.95rem;
  border: 1px solid rgba(164, 122, 182, 0.24);
  border-radius: 14px;
  background: #fff;
  color: var(--sq-text);
  font: inherit;
  line-height: 47px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}


.square-shows-filter-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b2f73' d='M1.4.8 6 5.4 10.6.8 12 2.2 6 8 0 2.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px 8px;
}

.square-shows-filter-field input:focus,
.square-shows-filter-field select:focus {
  outline: none;
  border-color: rgba(255, 53, 98, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 90, 143, 0.12);
}

.square-shows-filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
  align-items: center;
  min-height: 49px;
  padding-top: 1.36rem;
  margin-top: 0;
}

.square-shows-filter-actions .square-ticket-btn {
  min-height: 49px;
  height: 49px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.square-shows-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.square-shows-results-title {
  margin: 0;
  font-size: 1.65rem;
  color: var(--sq-deep);
}

.square-shows-results-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(164, 122, 182, 0.2);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--sq-muted);
  box-shadow: 0 8px 18px rgba(36, 22, 41, 0.04);
}

.square-shows-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.square-show-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(164, 122, 182, 0.22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(36, 22, 41, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.square-show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(36, 22, 41, 0.1);
  border-color: rgba(164, 122, 182, 0.35);
}

.square-show-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.square-show-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ece8f1;
}

.square-show-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.square-show-card:hover .square-show-card-image img {
  transform: scale(1.03);
}

.square-show-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1edf5, #e5deeb);
}

.square-show-card-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 0.62rem;
  padding: 1.08rem 1.08rem 1.12rem;
  height: 100%;
}

.square-show-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.46rem;
  min-height: 28px;
}

.square-show-card-badges .genre-badge,
.square-show-card-badges .show-status-label {
  padding: 0.31rem 0.56rem;
  font-size: 0.61rem;
  letter-spacing: 0.035em;
}

.square-show-card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.28;
  min-height: 2.55em;
}

.square-show-card-title a {
  color: var(--sq-deep);
  text-decoration: none;
}

.square-show-card-title a:hover {
  color: var(--sq-primary);
}

.square-show-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.42rem;
  color: var(--sq-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.square-show-card-date-context {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  background: rgba(139, 47, 115, 0.10);
  color: var(--sq-secondary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.square-show-card-meta-sep {
  color: rgba(95, 74, 116, 0.45);
}

.square-show-card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  margin-top: -0.08rem;
}

.square-show-card-price {
  color: var(--sq-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.square-show-card-excerpt {
  color: var(--sq-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.square-show-card-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.square-show-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
}

.square-show-card-actions.has-primary-cta {
  padding-top: 0.1rem;
}

.square-shows-cta {
  display: flex;
  align-items: center;
}

.square-shows-cta .square-ticket-btn,
.square-shows-cta .performance-action,
.square-shows-cta a {
  width: auto;
  min-width: 168px;
  justify-content: center;
}

.square-show-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--sq-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 1;
}

.square-show-card-readmore:hover {
  color: var(--sq-primary);
}

.square-show-card-readmore-arrow {
  transition: transform 0.18s ease;
}

.square-show-card-readmore:hover .square-show-card-readmore-arrow {
  transform: translateX(2px);
}

.square-shows-pagination {
  margin-top: 2rem;
}

.square-shows-pagination-top {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.square-shows-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.square-shows-pagination a,
.square-shows-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(164, 122, 182, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--sq-text);
  text-decoration: none;
}

.square-shows-pagination a:hover {
  border-color: rgba(255, 53, 98, 0.28);
  color: var(--sq-primary);
}

.square-shows-pagination .current {
  background: linear-gradient(135deg, var(--sq-primary), var(--sq-primary-soft));
  color: #fff;
  border-color: transparent;
}

.square-shows-empty {
  padding: 2rem;
  border: 1px solid var(--sq-border);
  border-radius: 20px;
  background: var(--sq-bg-soft);
  text-align: center;
}

@media (max-width: 1100px) {
  .square-shows-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .square-shows-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .square-shows-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .square-shows-wrap {
    padding: 2rem 1rem 2.85rem;
  }

  .square-shows-title {
    max-width: 11ch;
    line-height: 0.98;
  }

  .square-shows-filters {
    padding: 1rem;
    border-radius: 20px;
  }

  .square-shows-filter-grid,
  .square-shows-grid {
    grid-template-columns: 1fr;
  }

  .square-shows-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .square-show-card-title {
    min-height: 0;
  }

  .square-shows-cta .square-ticket-btn,
  .square-shows-cta .performance-action,
  .square-shows-cta a {
    min-width: 0;
    width: 100%;
  }
}
