/* ==========================================================================
   Music and Performances page. Builds on main.css / article.css.
   Palette is the site's own: maroon #5a1522, rust #b34d36, tan #dad4ce, teal #07666a
   ========================================================================== */

body { background-color: #ffffff; }

/* Title on the left, "Jump to Gigs" link on the right, above the hero image */
.titleRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}
.titleRow h1 { margin-right: auto; }
.gigJump,
.gigJump:visited {
  font-weight: 600;
  font-size: 1.05rem;
  color: #b34d36;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.2rem 0.1rem;
}
.gigJump:hover { text-decoration: underline; }
.gigJump .fa { padding-right: 0.4rem; }

.musicHero { margin: 0.5rem 0 0 0; }
.musicHero img.heroImg {
  display: block;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  object-position: 50% 45%;
}

.musicPage {
  width: 98%;
  margin: 0 auto;
}

.musicIntro {
  font-size: 1.1rem;
  line-height: 1.7rem;
  font-weight: 400;
  max-width: 60rem;
  margin: 1.5rem 0 1rem 0;
}

/* ---------- Outbound link tiles ---------- */
.musicLinks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.musicLinks li { flex: 1 1 14rem; }
.musicLinks a,
.musicLinks a:visited {
  display: block;
  background-color: #dad4ce50;
  color: #121212;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  transition: background-color 0.2s ease-in-out;
}
.musicLinks a:hover { background-color: #dad4ce; text-decoration: none; }
.musicLinks .fa { float: left; font-size: 1.9rem; color: #5a1522; padding: 0.15rem 0.8rem 0 0; }
.musicLinks .mlTitle { display: block; font-weight: 600; color: #5a1522; line-height: 1.4rem; }
.musicLinks .mlSub { display: block; font-size: 0.85rem; line-height: 1.2rem; font-weight: 400; }

/* ---------- In-page jump links ---------- */
.jumpNav {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
}
.jumpNav a { color: #b34d36; text-decoration: none; }
.jumpNav a:hover { text-decoration: underline; }

.musicSection { margin-top: 1rem; scroll-margin-top: 1rem; }
.musicSection h2 {
  font-size: 1.5rem;
  color: #5a1522;
  border-bottom: 1px solid #dad4ce;
  padding-bottom: 0.3rem;
  margin: 1.6rem 0 0.8rem 0;
}
.musicSection h3 { color: #07666a; font-size: 1.1rem; margin: 1.2rem 0 0.6rem 0; }
.moreLink { font-size: 0.95rem; }
.moreLink a { color: #b34d36; }

/* ---------- Card grid: one form factor for video AND audio ---------- */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #5a1522;
}
.thumb > img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out, opacity 0.2s;
}
.card:hover .thumb > img.cover,
.card:focus-visible .thumb > img.cover { transform: scale(1.04); }

/* audio thumbs: square artwork centered over a blurred, tinted backdrop */
.thumb.audio { background: linear-gradient(135deg, #5a1522 0%, #b34d36 100%); }
.thumb.audio img.bgart {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  filter: blur(14px) brightness(0.7);
}
.thumb.audio img.art {
  position: absolute;
  top: 8%;
  left: 50%;
  height: 84%;
  width: auto;
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.thumb.audio .noart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 3.4rem;
}
.thumb.audio .noart .fa { padding: 0; }

.thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.62);
  color: #ffffff;
  text-align: center;
  font-size: 1.15rem;
  line-height: 3rem;
  transition: background-color 0.2s, transform 0.2s;
}
.thumb .play .fa { padding: 0 0 0 3px; }
.card:hover .play,
.card:focus-visible .play { background: #b34d36; transform: scale(1.1); }
.card:focus-visible { outline: 3px solid #07666a; outline-offset: 3px; border-radius: 7px; }

.thumb .dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(18, 18, 18, 0.78);
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
}

.cardBody { display: block; padding: 0.5rem 0.1rem 0 0.1rem; }
.cardTitle {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3rem;
  color: #121212;
}
.cardMeta { display: block; font-size: 0.85rem; line-height: 1.2rem; font-weight: 400; color: #5b5651; }
.card:hover .cardTitle { color: #b34d36; }

/* ---------- Gigs ---------- */
.gigTable { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.35rem; }
.gigTable th {
  text-align: left;
  font-weight: 600;
  color: #5a1522;
  background: #ffffff;
  border-bottom: 2px solid #dad4ce;
  padding: 0.45rem 0.6rem;
}
.gigTable td { vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid #dad4ce80; font-weight: 400; }
.gigTable td.gDate { white-space: nowrap; font-weight: 600; }
.gigTable td.gTitle { font-weight: 600; }
.gigTable a { color: #b34d36; word-break: break-word; }
.gigTable tr.placeholder td { color: #77716b; font-style: italic; }
.gigTable tr.placeholder td.gDate { font-style: normal; color: #121212; }
.gigTable .empty { text-align: center; font-style: italic; color: #77716b; padding: 1rem; }
/* Past gigs get a light gray wash, like the Boomsoss site: they look "disabled" next to upcoming ones */
#past-gigs { background-color: rgba(0, 0, 0, 0.1); }
#past-gigs th { background: #e6e6e6; }           /* opaque, so the sticky header hides rows scrolling under it */
#past-gigs td { color: #3d3a37; border-bottom-color: rgba(0, 0, 0, 0.1); }

.gigScroll { max-height: 30rem; overflow-y: auto; border: 1px solid #dad4ce; border-radius: 7px; }
.gigScroll .gigTable th { position: sticky; top: 0; z-index: 1; }

@media (max-width: 719px) {
  /* turn table rows into stacked cards on phones */
  .gigTable thead { position: absolute; left: -9999px; }
  .gigTable, .gigTable tbody, .gigTable tr, .gigTable td { display: block; width: 100%; }
  .gigTable tr { padding: 0.55rem 0.6rem; border-bottom: 1px solid #dad4ce; }
  .gigTable td { border: 0; padding: 0.05rem 0; }
  .gigTable td.gDate { font-size: 1rem; color: #5a1522; }
  .gigTable td.gBand::before { content: "Band: "; font-weight: 600; }
  .gigTable td.gLoc { color: #5b5651; }
  .gigTable td:empty { display: none; }
}

/* ---------- Player modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 18, 18, 0.88);
  overflow-y: auto;
}
.modal.hidden { display: none; }
.modalInner {
  position: relative;
  width: 100%;
  max-width: 56rem;
  max-height: 100%;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.modalClose {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.7);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 2.2rem;
  padding: 0;
  cursor: pointer;
}
.modalClose:hover { background: #b34d36; }
.modalPlayer { background: #000000; }
.modalPlayer.video { position: relative; aspect-ratio: 16 / 9; }
.modalPlayer.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modalPlayer.audio { background: #f4f1ee; padding: 1.2rem 1rem 0.6rem 1rem; }
.modalPlayer.audio iframe { display: block; width: 100%; height: 166px; border: 0; }
.modalInfo { padding: 1rem 1.3rem 1.3rem 1.3rem; }
.modalInfo h2 { color: #5a1522; margin: 0 0 0.2rem 0; font-size: 1.45rem; line-height: 1.8rem; }
.modalMeta { margin: 0 0 0.7rem 0; font-size: 0.9rem; font-weight: 600; color: #07666a; }
.modalDesc { margin: 0 0 0.8rem 0; font-size: 1rem; line-height: 1.5rem; font-weight: 400; white-space: pre-line; }
.modalLink { margin: 0; font-size: 0.95rem; }
.modalLink a { color: #b34d36; }
body.modalOpen { overflow: hidden; }

@media (min-width: 600px) {
  .cardGrid { gap: 1.4rem; }
  .musicSection h2 { font-size: 1.7rem; }
}
@media (min-width: 980px) {
  .musicPage { width: 96%; }
  .cardGrid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .thumb > img.cover, .thumb .play, .musicLinks a { transition: none; }
  .card:hover .thumb > img.cover { transform: none; }
}
