.ss-live-festivals-home[hidden],
.ss-live-festivals-page__grid[hidden],
.ss-live-festivals-empty[hidden],
.ss-live-festival-card[hidden] {
  display: none !important;
}

.ss-live-festival-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 1.35rem;
  margin-top: 0.26rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid color-mix(in srgb, #14b8a6 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ss-surface, #fff) 82%, #14b8a6 18%);
  color: color-mix(in srgb, var(--ss-heading, #111827) 54%, #047857 46%);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.card-post-meta .ss-live-festival-badge,
.trending-global-section__meta .ss-live-festival-badge {
  margin-top: 0;
  margin-left: 0.42rem;
  vertical-align: middle;
}

.ss-festival-badges .ss-live-festival-badge {
  margin-top: 0;
}

.ss-live-festivals-home {
  --slider--gap: clamp(1.25rem, 2.2vw, 2rem);
  container: ss-home-live-festivals / inline-size;
  margin-block: clamp(1rem, 2.4vw, 1.8rem);
  gap: clamp(0.85rem, 1.8vw, 1.2rem);
}

.ss-live-festivals-home .section-head,
.ss-live-festivals-home .section-button {
  margin-bottom: 0.25rem;
}

.ss-live-festivals-home__intro {
  display: grid;
  gap: 0.22rem;
  max-width: min(100%, 42rem);
}

.ss-live-festivals-home__eyebrow {
  margin: 0;
  color: color-mix(in srgb, #0f766e 78%, var(--color-secondary, #667085) 22%);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-live-festivals-home__intro > p:not(.ss-live-festivals-home__eyebrow) {
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ss-live-festivals-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--slider--gap, 1.25rem);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.ss-live-festival-card,
.ss-live-festival-card:link,
.ss-live-festival-card:visited {
  color: inherit;
  text-decoration: none;
}

.ss-live-festival-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.8rem, 1.2vw, 1rem);
  min-width: 0;
  min-height: 148px;
  padding: clamp(0.95rem, 1.3vw, 1.12rem);
  border: 1px solid var(--ss-border, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  background: var(--ss-surface, #fff);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.ss-live-festival-card:hover,
.ss-live-festival-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.ss-live-festival-card--home {
  width: 100%;
  max-width: 100%;
}

.ss-live-festival-card .featured-badge {
  display: none !important;
}

.ss-live-festival-card .featured-badge ~ .texts {
  padding-right: 0 !important;
}

.ss-live-festival-card img {
  width: clamp(56px, 5.2vw, 70px);
  height: clamp(56px, 5.2vw, 70px);
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--color-background-200, #f5f5f5);
  object-fit: contain;
}

.ss-live-festival-card .texts {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ss-live-festival-card .title {
  margin: 0;
  color: var(--ss-title, inherit);
  font-size: 1.05rem !important;
  font-weight: 600;
  line-height: 1.3 !important;
}

.ss-live-festival-card .subtitle {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  margin: 0;
  color: var(--ss-muted, #6b7280);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow: hidden;
}

.ss-live-festival-card .subtitle:not(:has(.subtitle-location:not(:empty), .subtitle-style:not(:empty))) {
  display: none;
}

.ss-live-festival-card .subtitle-location,
.ss-live-festival-card .subtitle-style {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-live-festival-card .subtitle-location:empty,
.ss-live-festival-card .subtitle-style:empty {
  display: none;
}

.ss-live-festival-card .subtitle-location:not(:has(> span:not(:empty))),
.ss-live-festival-card .subtitle-style:not(:has(> span:not(:empty))) {
  display: none;
}

.ss-live-festival-card .subtitle-location:not(:empty) {
  margin-top: 0.04rem;
}

.ss-live-festival-card .subtitle-location > span:not(:first-child)::before,
.ss-live-festival-card .subtitle-style > span:not(:first-child)::before {
  content: ", ";
}

.ss-live-festival-card .subtitle-style {
  margin-top: 0.05rem;
}

.ss-live-festival-card .ss-live-festival-card__status-row {
  display: grid;
  justify-items: start;
  gap: 0.22rem;
  min-width: 0;
  margin-top: 0.12rem;
}

.ss-live-festival-card__status-row .ss-live-festival-badge {
  margin-top: 0;
}

.ss-live-festival-card .date {
  color: color-mix(in srgb, var(--ss-title, #111827) 82%, #0f766e 18%);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.ss-live-festival-card .ss-festival-badges--card {
  margin-top: 0.1rem;
}

.ss-live-festival-card.ss-save-card-host {
  padding-right: 2.8rem !important;
  padding-bottom: 2.35rem !important;
}

.ss-live-festival-card.ss-save-card-host > .ss-save-card-slot {
  position: absolute;
  right: 0.62rem;
  bottom: 0.58rem;
  z-index: 3;
}

.ss-live-festival-card.ss-save-card-host > .ss-save-card-slot > .ss-save-card-button {
  position: static;
}

.ss-live-festivals-page__head {
  display: grid;
  gap: 0.45rem;
}

.ss-live-festivals-page__head .browse-intro {
  max-width: 58ch;
}

.ss-live-festivals-page__grid {
  align-items: stretch;
}

.ss-live-festivals-empty {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--ss-border, rgba(15, 23, 42, 0.12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--ss-surface, #fff) 94%, #14b8a6 6%);
}

.ss-live-festivals-empty__inner {
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}

.ss-live-festivals-empty h2,
.ss-live-festivals-empty p {
  margin: 0;
}

.ss-live-festivals-empty h2 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.ss-live-festivals-empty p {
  color: var(--ss-muted, #6b7280);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .ss-live-festivals-home__grid {
    overflow-x: visible;
  }
}

@media (min-width: 768px) {
  .ss-live-festivals-home__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss-live-festival-card--home {
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .ss-live-festivals-home__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1320px) {
  .ss-live-festivals-home__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  .ss-live-festivals-home__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  @container ss-home-live-festivals (min-width: 640px) {
    .ss-live-festivals-home__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @container ss-home-live-festivals (min-width: 960px) {
    .ss-live-festivals-home__grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}

@media (prefers-color-scheme: dark) {
  :root[data-color-scheme="system"] .ss-live-festival-badge {
    background: color-mix(in srgb, var(--ss-surface, #111827) 78%, #2dd4bf 22%);
    border-color: color-mix(in srgb, #5eead4 30%, transparent);
    color: #ccfbf1;
  }

  :root[data-color-scheme="system"] .ss-live-festivals-home__eyebrow {
    color: #5eead4;
  }

  :root[data-color-scheme="system"] .ss-live-festival-card {
    background: color-mix(in srgb, var(--ss-surface, #111827) 92%, white 8%);
    border-color: color-mix(in srgb, white 12%, transparent);
    box-shadow: none;
  }

  :root[data-color-scheme="system"] .ss-live-festival-card .date {
    color: #ccfbf1;
  }

  :root[data-color-scheme="system"] .ss-live-festivals-empty {
    background: color-mix(in srgb, var(--ss-surface, #111827) 86%, #14b8a6 14%);
    border-color: color-mix(in srgb, #5eead4 18%, transparent);
  }
}

[data-color-scheme="dark"] .ss-live-festival-badge {
  background: color-mix(in srgb, var(--ss-surface, #111827) 78%, #2dd4bf 22%);
  border-color: color-mix(in srgb, #5eead4 30%, transparent);
  color: #ccfbf1;
}

[data-color-scheme="dark"] .ss-live-festivals-home__eyebrow {
  color: #5eead4;
}

[data-color-scheme="dark"] .ss-live-festival-card {
  background: color-mix(in srgb, var(--ss-surface, #111827) 92%, white 8%);
  border-color: color-mix(in srgb, white 12%, transparent);
  box-shadow: none;
}

[data-color-scheme="dark"] .ss-live-festival-card:hover,
[data-color-scheme="dark"] .ss-live-festival-card:focus-visible {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

[data-color-scheme="dark"] .ss-live-festival-card img {
  background: color-mix(in srgb, white 9%, transparent);
}

[data-color-scheme="dark"] .ss-live-festival-card .subtitle,
[data-color-scheme="dark"] .ss-live-festivals-empty p {
  color: color-mix(in srgb, white 68%, var(--ss-muted, #9ca3af) 32%);
}

[data-color-scheme="dark"] .ss-live-festival-card .date {
  color: #ccfbf1;
}

[data-color-scheme="dark"] .ss-live-festivals-empty {
  background: color-mix(in srgb, var(--ss-surface, #111827) 86%, #14b8a6 14%);
  border-color: color-mix(in srgb, #5eead4 18%, transparent);
}
