/* SEO & Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  /* Logo-inspired: moon night, cream, gold glow, logo blue for titles */
  --bg-primary: #0e0f14;
  --bg-secondary: #16182a;
  --text-primary: #f0ede6;
  --text-secondary: #a8a4a0;
  --border: #2a2d3a;
  --accent: #d4a84b;
  --accent-muted: rgba(212, 168, 75, 0.4);
  --accent-subtle: rgba(212, 168, 75, 0.15);
  --logo-glow: rgba(212, 168, 75, 0.5);
  --logo-blue: #5b9dd3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background: #06070c;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #0a0b12 0%, var(--bg-primary) 25%, #0e0f14 50%, #08090e 100%);
  min-height: 100vh;
}

/* Full-page background image (whaletail from photos) – image URL set by JS to try .jpg then .png */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 12, 0.5) 0%, rgba(14, 15, 20, 0.65) 100%);
  pointer-events: none;
}

/* Keep header and main content above the background layer */
.main,
.site-logo {
  position: relative;
  z-index: 1;
}

/* Header – fully transparent, no border or shadow */
.header,
.header-content {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.header .social-links-grid {
  gap: 0.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.header-player-wrap {
  flex-shrink: 0;
}

/* Compact Recent Tracks box in header - single row, same height as social buttons */
.header-player.music-player-container {
  width: auto;
  max-width: 320px;
}

.header .music-player {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0.25rem 0.5rem;
  gap: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.header .music-player-header {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.header .music-player-title {
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--logo-blue);
  line-height: 1.2;
}

.header .music-current-track {
  font-size: 0.65rem;
  max-width: 100%;
  line-height: 1.2;
}

.header .music-progress-container {
  width: 40px;
  height: 2px;
  flex-shrink: 0;
}

.header .music-time-display {
  display: none;
}

.header .music-controls {
  gap: 0.15rem;
  flex-shrink: 0;
}

.header .music-control-btn {
  width: 22px;
  height: 22px;
  padding: 0.15rem;
  font-size: 0.65rem;
  border-radius: 3px;
}

.header .music-play-pause {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.header .music-volume-control {
  display: none;
}

.header .music-track-list {
  display: none;
}

.site-logo {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.site-logo-img {
  width: 16rem;
  height: 16rem;
  object-fit: contain;
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-logo-img:hover {
  opacity: 1;
}

.header-email {
  font-size: 0.5rem;
  font-style: italic;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.header-email:hover {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 1rem;
  margin-right: 2rem;
}

/* Main Content */
.main {
  flex: 1;
  width: 100%;
  padding: 0.5rem 0 2rem;
  overflow: auto;
}

.main-content-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  align-items: flex-start;
  justify-content: center;
}

.content-area {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}

.section {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  padding-top: 0;
}

.section-header {
  margin-bottom: 1.5rem;
  margin-top: 0;
  padding: 0 1rem;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--logo-blue);
}

/* Main Section Tabs */
.main-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  justify-content: center;
}

.main-tab-button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
  font-family: 'DM Sans', sans-serif;
}

.main-tab-button:hover {
  color: var(--text-primary);
}

.main-tab-button.active {
  border-bottom-color: var(--logo-blue);
  color: var(--logo-blue);
}

.content-section {
  width: 100%;
  min-height: 0;
}

.content-section.hidden {
  display: none;
}

/* Social Links */
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.social-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 0 12px var(--logo-glow);
}

.social-link-card:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--logo-glow), 0 0 8px var(--accent-muted);
}

.social-link-card .platform {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: inherit;
}

/* Sidebar */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  margin-top: 0;
}

/* Music Player */
.music-player-container {
  width: 100%;
}

.music-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.music-player-header {
  margin-bottom: 0.5rem;
  text-align: center;
}

.music-player-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--logo-blue);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.25rem;
}

.music-current-track {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress-container {
  width: 100%;
  height: 4px;
  background: var(--accent-subtle);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.music-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.music-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.music-control-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.music-control-btn:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
}

.music-play-pause {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.music-volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.music-volume-slider {
  flex: 1;
  height: 4px;
  background: var(--accent-subtle);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.music-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.music-track-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.track-item {
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}

.track-item:hover {
  background: var(--accent-subtle);
  border-color: var(--border);
}

.track-item.active {
  background: var(--accent-subtle);
  border-color: var(--accent-muted);
  color: var(--accent);
}

.track-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: inherit;
  font-family: 'DM Sans', sans-serif;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item.active .track-title {
  color: var(--accent);
}

.track-duration {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.track-item.active .track-duration {
  color: var(--accent);
}

@media (max-width: 968px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .main {
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
  }
  
  .main-content-wrapper {
    flex-direction: column;
    padding: 0 0.5rem;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
  }
  

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0.5rem;
    justify-content: center;
    position: relative;
  }

  .header-left {
    justify-content: center;
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .header-right .header-email {
    display: none !important;
  }

  .header-email {
    display: block !important;
    position: fixed !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 0.5rem !important;
    z-index: 100 !important;
    background: var(--bg-secondary) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    margin: 0 !important;
  }

  .header .social-links-grid {
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
  }
  
  .header .social-link-card {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    flex: 0 1 auto !important;
    min-width: auto !important;
    display: inline-flex !important;
  }
  
  .header .social-link-card .platform {
    font-size: 0.8rem !important;
  }
  
  .bio-container, .shows-container, .photos-container {
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    flex: 1;
    min-height: 0;
  }
  
  .bio-content {
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  
  .bio-image-wrapper {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 2rem 0;
  }
  
  .bio-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  
  .content-area {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  
  .main-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    justify-content: center;
  }
  
  .main-tabs::-webkit-scrollbar {
    height: 4px;
  }
  
  .main-tabs::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .main-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-muted);
    border-radius: 2px;
  }
  
  .main-tab-button {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    white-space: nowrap;
  }
  
  .content-section {
    flex: 1;
    overflow-y: visible;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    padding-bottom: 2rem;
  }
  
  .bio-container, .shows-container, .photos-container, .merch-container {
    padding-bottom: 2rem;
  }
  
  .content-section.hidden {
    display: none;
  }
}

/* Shows */
.shows-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
  font-family: 'DM Sans', sans-serif;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  border-bottom-color: var(--logo-blue);
  color: var(--logo-blue);
}

.shows-content {
  width: 100%;
}

.shows-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.shows-list.hidden {
  display: none;
}

.show-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.show-card:hover {
  border-color: var(--accent-muted);
}

.show-date {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--logo-blue);
  margin-bottom: 0.5rem;
}

.show-venue {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--logo-blue);
  margin-bottom: 0.25rem;
}

.show-location {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.show-time {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.ticket-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--accent-muted);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.ticket-link:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.no-shows {
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
}

.no-content {
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
}

.photos-container,
.bio-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 0;
}

.photos-gallery {
  column-width: 200px;
  column-gap: 4px;
  margin-top: 1rem;
  line-height: 0;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
  break-inside: avoid;
  margin-bottom: 4px;
  cursor: pointer;
}

.gallery-image:last-child {
  margin-bottom: 0;
}

/* Lightbox for expanded gallery photos */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--border), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox__close:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.bio-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
  line-height: 1.9;
  color: var(--text-primary);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
}

.bio-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.bio-content p:first-child {
  margin-top: 0;
}

.bio-content p:last-child {
  margin-bottom: 0;
}

.bio-about {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.bio-about p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--logo-blue);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  line-height: 1.9;
}

.bio-image-wrapper {
  text-align: center;
  margin: 2rem auto;
  max-width: 100%;
}

.bio-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  flex-shrink: 0;
  font-size: 0.7rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: inherit;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

.footer-email {
  font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

