/* Homepage concert list; shared event/history styles stay in styles.css. */
#live {
  scroll-margin-top: 72px;
}

#live .gigs__inner {
  max-width: 980px;
}

#live .hero-glitch {
  margin: 24px 0 36px;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: clamp(2px, .8vw, 7px);
  white-space: nowrap;
}

#live .gigs__list {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  scroll-margin-top: 88px;
}

#live .gigs__empty {
  padding: 28px 20px;
  background: var(--live-panel-bg);
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

#live .gig {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-color: var(--live-panel-border);
  border-radius: 6px;
  background: var(--live-panel-bg);
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

#live .gig--next {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px 32px;
  padding: 30px;
  border-color: var(--live-featured-border);
  background: var(--live-featured-bg);
  box-shadow: inset 3px 0 #6fdde8, 0 16px 44px rgba(0, 0, 0, .25);
}

#live .gig--next:has(.gig__flyer) {
  grid-template-columns: 96px minmax(0, 1fr) 180px;
}

#live .gig:hover,
#live .gig:focus-within {
  border-color: #6fdde8;
  box-shadow: 0 0 0 1px rgba(111, 221, 232, .2);
  transform: none;
}

#live .gig__date {
  min-height: 0;
  padding: 6px 0;
  gap: 5px;
  border: 0;
  border-right: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 0;
  background: none;
  text-shadow: none;
}

#live .gig__day {
  font-size: 1.75rem;
  letter-spacing: 0;
}

#live .gig__month {
  font-size: .8125rem;
  color: #6fdde8;
  opacity: 1;
}

#live .gig__year {
  font-size: .75rem;
  letter-spacing: .04em;
}

#live .gig__next-label {
  display: none;
  margin-bottom: 14px;
  color: #6fdde8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#live .gig--next .gig__next-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#live .gig__next-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

#live .gig__meta {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 24px;
}

#live .gig__city {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#live .gig__name {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: balance;
}

#live .gig__name a:hover {
  text-decoration: none;
}

/* A real link covers the row, including its date, flyer and details cue. */
#live .gig__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 6px;
}

#live .gig__name a:focus-visible {
  outline: none;
}

#live .gig__name a:focus-visible::after {
  outline: 2px solid #6fdde8;
  outline-offset: 4px;
}

#live .gig__venue,
#live .gig__note {
  grid-column: 2;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #d2d1dc;
}

#live .gig__venue {
  grid-row: 2;
}

#live .gig__note {
  grid-row: 3;
  font-size: .9rem;
  color: #b9bac9;
}

#live .gig__note span {
  white-space: nowrap;
}

#live .gig--next .gig__date {
  grid-row: 1 / 3;
  gap: 10px;
  padding-block: 12px;
}

#live .gig--next .gig__day {
  font-size: 3.5rem;
}

#live .gig--next .gig__month {
  font-size: 1rem;
}

#live .gig--next .gig__year {
  font-size: .875rem;
}

#live .gig--next .gig__meta {
  grid-column: 2;
  grid-row: 1;
  display: block;
  align-self: end;
}

#live .gig--next .gig__city {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

#live .gig--next .gig__name {
  margin-bottom: 6px;
  font-size: 1.125rem;
}

#live .gig--next .gig__note {
  margin-top: 8px;
}

#live .gig__flyer {
  display: none;
  grid-column: 3;
  grid-row: 1 / 3;
  width: 180px;
  height: 240px;
  object-fit: contain;
  padding: 6px;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}

#live .gig--next .gig__flyer {
  display: block;
}

#live .gig__details {
  grid-column: 3;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(111, 221, 232, .4);
  border-radius: 4px;
  background: rgba(111, 221, 232, .06);
  color: #6fdde8;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

#live .gig--next .gig__details {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  padding: 12px 18px;
  border-color: #6fdde8;
  background: #6fdde8;
  color: #09141a;
}

#live .gig:hover .gig__details,
#live .gig:focus-within .gig__details {
  border-color: #6fdde8;
  background: rgba(111, 221, 232, .12);
}

#live .gig--next:hover .gig__details,
#live .gig--next:focus-within .gig__details {
  background: #a0edf4;
}

#live .gig__details span {
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s;
}

#live .gig:hover .gig__details span {
  transform: translateX(4px);
}

#live .stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin: 28px auto 0;
}

#live .stat-strip__item {
  flex-direction: row;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: system-ui, sans-serif;
}

#live .stat-strip__num {
  font-size: .95rem;
  color: #dfdfeb;
}

#live .stat-strip__label {
  margin: 0;
  font-size: .875rem;
  color: #c4c2d0;
  letter-spacing: 0;
}

#live .stat-strip__item:nth-child(3) .stat-strip__label {
  order: -1;
}

#live .stat-strip__item--upcoming .stat-strip__num,
#live .stat-strip__item--upcoming .stat-strip__label {
  color: #6fdde8;
}

#live .stat-strip__item--upcoming:hover {
  transform: none;
  text-decoration: underline;
}

#live .stat-strip__item--upcoming:focus-visible {
  outline: 2px solid #6fdde8;
  outline-offset: 5px;
}

#live .stat-strip__item--names {
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 4px 8px;
}

#live .stat-strip__item--names .stat-strip__label {
  margin: 0;
}

#live .stat-strip__names {
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 400;
  color: #c6c5d2;
}

#live .stat-strip__names span {
  white-space: nowrap;
}

#live .recently-played {
  max-width: none;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

#live .recently-played__title {
  text-align: left;
  font-size: .75rem;
  color: #b8b5c8;
}

#live .recently-played__grid {
  gap: 12px 24px;
}

#live .recently-played__card {
  gap: 14px;
  padding: 14px 16px;
  border-color: var(--live-panel-border);
  border-radius: 6px;
  background: var(--live-panel-bg);
  text-align: left;
  opacity: 1;
}

#live .recently-played__card:focus-visible {
  outline: 2px solid #6fdde8;
  outline-offset: 3px;
}

#live .recently-played__date {
  padding: 0;
  min-width: 42px;
  background: none;
}

#live .recently-played__day {
  font-size: 1.1rem;
}

#live .recently-played__name {
  font-size: .875rem;
  line-height: 1.5;
}

#live .recently-played__venue {
  font-family: system-ui, sans-serif;
  font-size: .875rem;
  color: #c4c2d0;
  line-height: 1.5;
}

#live .stat-strip__cta {
  margin: 22px auto 0;
  font-size: .875rem;
  line-height: 1.7;
}

@media (min-width: 701px) and (max-width: 900px) {
  #live .gig {
    gap: 20px;
    padding-inline: 20px;
  }

  #live .gig__meta {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 16px;
  }

  #live .gig--next:has(.gig__flyer) {
    grid-template-columns: 76px minmax(0, 1fr) 150px;
  }

  #live .gig__flyer {
    width: 150px;
    height: 208px;
  }

  #live .gig--next .gig__day {
    font-size: 2.75rem;
  }
}

@media (max-width: 700px) {
  #live .gig,
  #live .gig--next:has(.gig__flyer) {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 16px;
    padding: 20px 16px;
  }

  #live .gig__date,
  #live .gig--next .gig__date {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    gap: 6px;
    padding-top: 4px;
  }

  #live .gig__day,
  #live .gig--next .gig__day {
    font-size: 1.8rem;
  }

  #live .gig--next .gig__month {
    font-size: .8125rem;
  }

  #live .gig--next .gig__year {
    font-size: .75rem;
  }

  #live .gig__meta,
  #live .gig--next .gig__meta {
    grid-column: 2;
    grid-row: 1;
    display: block;
    align-self: auto;
  }

  #live .gig__city {
    margin-bottom: 8px;
  }

  #live .gig--next .gig__city {
    font-size: 1.75rem;
  }

  #live .gig__next-label {
    font-size: .625rem;
    letter-spacing: .08em;
  }

  #live .gig__next-label::before {
    width: 16px;
    flex-shrink: 0;
  }

  #live .gig__name,
  #live .gig--next .gig__name {
    margin-bottom: 4px;
    font-size: .9375rem;
  }

  #live .gig__note,
  #live .gig--next .gig__note {
    margin-top: 6px;
    font-size: .875rem;
  }

  #live .gig__flyer,
  #live .gig--next .gig__flyer {
    display: none;
  }

  #live .gig__details,
  #live .gig--next .gig__details {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding: 10px 12px;
    margin-top: 14px;
  }

  #live .stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

  #live .stat-strip__item {
    min-width: 0;
  }

  #live .stat-strip__item--names {
    grid-column: 1 / -1;
    margin-top: 4px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  #live .gig,
  #live .gig__details span {
    transition: none;
  }

  #live .glitch span,
  #live .glitch::before,
  #live .glitch::after {
    animation: none;
  }
}
