body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./bg.jpg') center center / cover no-repeat;
  z-index: -1;
}

:root {
  --accent: #557268;
  --text: #ffffff;
  --bg: #fafafa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0.01em;
  height: 100vh;
  margin: 0;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  font-weight: 700;
  margin-bottom: 32px;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

section {
  margin-bottom: 96px;
}

/* SOCIALS */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 96px;
}

.socials a {
  color: var(--text);
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
}

.socials a .social-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  transform: translateY(0px);
  filter: invert(1);
  transition: filter 0.2s ease;
}

.socials a:hover .social-icon {
  filter: brightness(0) saturate(100%) invert(59%) sepia(17%) saturate(370%) hue-rotate(106deg) brightness(95%) contrast(92%);
}

.socials a .social-svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* BUY VINYL */
.buy-vinyl {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 96px;
}

.buy-vinyl a {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 32px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.buy-vinyl a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(85, 114, 104, 0.1);
}

/* MEDIA (index) */
.media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  filter: none;
  transition: filter 0.3s ease;
}

.media iframe:hover {
  filter: none;
}

.spotify {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.spotify iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  filter: none;
  transition: filter 0.3s ease;
}

.spotify iframe:hover {
  filter: none;
}

/* TOUR (index) */
.tour {
  display: block;
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tour h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--accent);
}

.tour ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tour li {
  display: grid;
  grid-template-columns: 160px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-weight: 500;
}

.tour li:last-child {
  border-bottom: none;
}

.tour li .date {
  color: var(--accent);
  font-weight: 700;
}

.tour li .event {
  color: var(--text);
}

.tour li .support {
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  white-space: nowrap;
}

.tour li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px; /* fixed width for uniform buttons */
}

.tour li a:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ticket column alignment */
.tour li .ticket { 
  justify-self: end;
  grid-column: 4; /* always occupy the last column so missing support doesn't shift it */
}

/* inactive ticket button */
.tour li .ticket.inactive {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
  background: transparent;
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .tour li {
    display: block;
    gap: 8px;
  }

  .tour li .date {
    display: block;
    width: auto;
    margin-bottom: 6px;
  }

  .tour li .event {
    display: block;
    width: 100%;
  }

  .tour li .support {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.9);
  }

  .tour li a {
    display: inline-block;
    margin-top: 8px;
    width: auto; /* allow natural width on small screens */
  }

  .tour li .ticket {
    grid-column: auto; /* allow it to flow naturally when stacked */
    justify-self: start;
    display: inline-block;
    margin-top: 8px;
  }
}

/* AUDIO PLAYER (music) */
.music-player {
  background: rgba(255, 255, 255, 0.5);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.music-player h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.player-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.player-controls button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.player-controls button:hover {
  opacity: 0.8;
}

.player-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

audio {
  width: 100%;
  margin-bottom: 16px;
}

.playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.playlist li {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist li .track-number {
  flex: 0 0 36px;
  color: rgba(0,0,0,0.6);
  font-weight: 600;
  text-align: left;
  margin-right: 12px;
  font-size: 0.9rem;
}

.playlist li .song-name {
  flex: 1;
  min-width: 0;
}

.playlist li .song-duration {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  margin-left: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.playlist li:last-child {
  border-bottom: none;
}

.playlist li:hover {
  background-color: rgba(1, 96, 125, 0.15);
}

.playlist li.active {
  background-color: rgba(1, 96, 125, 0.3);
  font-weight: 600;
  color: var(--accent);
}

.playlist.empty {
  padding: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  font-size: 0.975rem;
  color: #ffffff;
  margin-top: 120px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}
