/* Music hero */

.music-hero {
  position: relative;
  height: clamp(320px, 38vw, 480px);
  overflow: hidden;
  isolation: isolate;
}

.music-hero-image,
.music-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.music-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
}

.music-hero-overlay {
  z-index: -1;
  background: rgb(0 0 0 / 50%);
}

.music-hero-content {
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(40px, 7vw, 75px);
  left: clamp(80px, 10vw, 170px);
}

.music-hero h1 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--display-font);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.music-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.035em;
}

/* Everything below stays inside the mobile media query */
@media (max-width: 800px) {
  .music-hero {
    height: 55svh;
    min-height: 380px;
  }

  .music-hero-image {
    object-position: center;
  }

  .music-hero-content {
    right: 24px;
    bottom: 55px;
    left: 24px;
  }

  .music-hero h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .music-hero p {
    margin-top: 14px;
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  }
}


/* ========================================
   REPERTOIRE
======================================== */

.repertoire-section {
  padding: clamp(90px, 12vw, 160px) var(--page-gutter);
}

.repertoire-content {
  width: min(100%, 710px);
  margin-inline: auto;
}

.repertoire-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 42px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.repertoire-player {
  overflow: hidden;
  padding: 40px 28px 32px;
  border-radius: 30px;
  background: rgb(0 0 0 / 58%);
  box-shadow: 0 22px 45px rgb(0 0 0 / 25%);
}

.repertoire-controls {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

.repertoire-table-wrapper {
  width: 100%;
}

.repertoire-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  table-layout: fixed;

}

.repertoire-table tbody tr {
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.repertoire-table tbody tr:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.repertoire-table th,
.repertoire-table td {
  width: 50%;
  padding: 15px 20px;
  text-align: center;
}

.repertoire-table th {
  color: var(--yellow);
  background: rgb(40 40 40 / 88%);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.repertoire-table td {
  color: #fdeeda;
  background: rgb(35 35 35 / 88%);
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

.repertoire-table th:first-child,
.repertoire-table td:first-child {
  border-radius: 9px 0 0 9px;
}

.repertoire-table th:last-child,
.repertoire-table td:last-child {
  border-radius: 0 9px 9px 0;
}

.request-song-button {
  display: grid;
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border: 2px solid rgb(246 241 232 / 70%);
  border-radius: 10px;
  color: rgb(246 241 232 / 75%);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  place-items: center;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.request-song-button:hover,
.request-song-button:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgb(255 204 93 / 8%);
}

/* Mobile */

@media (max-width: 800px) {
  .repertoire-section {
    padding: 80px 24px 100px;
  }

  .repertoire-heading {
    gap: 0.4em;
    margin-bottom: 28px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .repertoire-player {
    padding: 22px 14px 24px;
    border-radius: 20px;
  }

  .repertoire-controls {
    margin-bottom: 18px;
  }

  .repertoire-table {
    border-spacing: 0 10px;
  }

  .repertoire-table th,
  .repertoire-table td {
    padding: 12px 8px;
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  }

  .request-song-button {
    min-height: 46px;
    font-size: 0.85rem;
  }
}


/* ========================================
   PAST SHOWS
======================================== */

.past-shows-section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.past-shows-heading-wrapper {
  width: min(calc(100% - (2 * var(--page-gutter))), 710px);
  margin-inline: auto;
}

.past-shows-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 48px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

/* Full-width container for the four cards */

.shows-carousel-wrapper {
  width: 100%;
  padding-inline: clamp(20px, 3vw, 48px);
}

.shows-carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  width: 100%;
}

/* Individual flyer card */

.show-card {
  min-width: 0;
  padding: clamp(14px, 1.4vw, 20px);
  border-radius: 24px;
  color: inherit;
  background: rgb(0 0 0 / 58%);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.show-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 557 / 726;
  border-radius: 14px;
  object-fit: cover;
}

.show-semester {
  margin: 22px 0 7px;
  color: #fdeeda;
  font-size: 0.95rem;
  line-height: 1.2;
}

.show-card h3 {
  margin: 0;
  color: #fdeeda;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
}

.show-card:hover,
.show-card:focus-visible {
  background: rgb(0 0 0 / 75%);
  transform: translateY(-6px);
}

.show-card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

/* Two cards per row on tablets */

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

/* One card per row on phones */

@media (max-width: 550px) {
  .past-shows-section {
    padding: 80px 0;
  }

  .past-shows-heading-wrapper {
    width: calc(100% - 48px);
  }

  .past-shows-heading {
    gap: 0.4em;
    margin-bottom: 30px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .shows-carousel-wrapper {
    padding-inline: 24px;
  }

  .shows-carousel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .show-card {
    width: min(100%, 360px);
    margin-inline: auto;
    padding: 15px 15px 20px;
  }
}