/* ============================================
   MEDLEY GROOVES — SHARED STYLES
   ============================================ */

@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');

:root {
  --blue:   #1949c6;
  --red:    #f72b20;
  --purple: #c27ade;
  --black:  #000000;
  --white:  #ffffff;
  --navy:   #19297c;
  --gray:   #c2c1c2;
  --yellow: #eaff00;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at 15% 10%, #2458d8 0%, #1949c6 45%, #1338b0 100%);
  font-family: 'Neue Haas Grotesk Display Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.loaded {
  opacity: 1;
}
body.fading-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================
   BACKGROUND DECORATION
   ============================================ */
.bg-logos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-logo-item {
  position: absolute;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  animation-name: bgLogoPulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes bgLogoPulse1 {
  0%, 100% { transform: scale(0.88) rotate(0deg); }
  50%       { transform: scale(1.08) rotate(22deg); }
}
@keyframes bgLogoPulse2 {
  0%, 100% { transform: scale(0.88) rotate(0deg); }
  50%       { transform: scale(1.08) rotate(-18deg); }
}
@keyframes bgLogoPulse3 {
  0%, 100% { transform: scale(0.88) rotate(0deg); }
  50%       { transform: scale(1.08) rotate(30deg); }
}

/* ============================================
   MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   SIDE MENU
   ============================================ */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  height: 100vh; /* fallback */
  background: var(--white);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-menu.open {
  transform: translateX(0);
}

.menu-top {
  padding: 22px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.menu-wordmark-wrap {
  overflow: hidden;
  height: 92px;
  width: 68%;
  flex-shrink: 0;
  padding-left: 20px;
}

.menu-wordmark {
  width: 100%;
  display: block;
  margin-top: -32px;
}

.btn-menu-close {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.menu-nav {
  list-style: none;
  padding: 28px 0 0;
  flex: 1;
}

.menu-nav li {
  border-bottom: 1px solid var(--gray);
}
.menu-nav li:first-child {
  border-top: 1px solid var(--gray);
}

.menu-nav a {
  display: block;
  padding: 18px 20px;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.menu-nav a:hover,
.menu-nav a.active {
  color: var(--red);
  padding-left: 28px;
}

.menu-bottom {
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.menu-bottom img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.12;
}

.menu-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.menu-instagram:active {
  opacity: 0.8;
}

.menu-enquire {
  display: inline-block;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 7px 16px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.menu-enquire:active {
  opacity: 1;
}
.menu-instagram svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: radial-gradient(ellipse at 15% 10%, #2458d8 0%, #1949c6 45%, #1338b0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
}

.header-wordmark-wrap {
  overflow: hidden;
  height: 92px;
  display: none;
  align-items: center;
  justify-content: center;
}

.header-wordmark {
  width: 220px;
  flex-shrink: 0;
  display: block;
  margin-top: -32px;
}

.header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo / menu button */
.btn-logo {
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 5px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.btn-logo:active {
  transform: scale(0.93);
}

#logoImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

@keyframes clickSpin {
  0%   { transform: rotate(var(--spin-start, 0deg)); }
  60%  { transform: rotate(calc(var(--spin-start, 0deg) + 240deg)); }
  100% { transform: rotate(calc(var(--spin-start, 0deg) + 360deg)); }
}

.logo-click-anim {
  animation: clickSpin 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

.header-title {
  flex: 1;
  text-align: center;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--white);
  padding-right: 48px;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.main-wrap {
  padding: 20px 16px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   EVENTS LIST (Page 1)
   ============================================ */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Real Event Card ---- */
.event-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: var(--navy);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease;
  user-select: none;
}
.event-card:active {
  transform: scale(0.975);
}

/* Poster area */
.event-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #0d1c56 100%);
  max-height: 800px;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.event-card.collapsed .event-card-visual {
  max-height: 0;
  opacity: 0;
}

.event-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  display: block;
}

.event-poster-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

/* Fallback poster */
.event-poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(160deg, var(--navy) 0%, #0d1c56 100%);
}
.fallback-asterisk {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.55;
}
.fallback-brand {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 46px;
  color: var(--purple);
  text-align: center;
  line-height: 0.95;
  letter-spacing: 0.04em;
}
.fallback-meta {
  text-align: center;
}
.fallback-meta p {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  line-height: 1.8;
}

/* Gradient at bottom of poster */
.event-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  z-index: 3;
  pointer-events: none;
}

/* Info bar below poster */
.event-card-footer {
  background: var(--white);
  padding: 14px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-card-footer-left {
  flex: 1;
  min-width: 0;
}

.event-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.event-card-name {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-sub {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-sub .sep {
  margin: 0 5px;
  color: var(--red);
}

.event-card-arrow {
  font-size: 24px;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
}

/* ---- Ticket Button ---- */
.btn-expand-card {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-expand-card:active {
  background: rgba(255, 255, 255, 0.08);
}

.btn-tickets {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-tickets:active {
  background: #c5200f;
  transform: scale(0.98);
}

.btn-tickets-modal {
  width: 100%;
  margin: 0 0 20px;
  border-radius: 10px;
}

/* ---- More events banner ---- */
.events-coming-soon {
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.events-coming-soon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}

.events-coming-soon p {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.events-instagram {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.events-instagram:active {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   GALLERY (all pages)
   ============================================ */
.gallery-section {
  max-width: 480px;
  margin: 44px auto 0;
  padding-bottom: 52px;
  position: relative;
  z-index: 1;
}

.gallery-heading {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--white);
  padding: 0 16px 10px;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar {
  display: none;
}
.gallery-strip img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: block;
}

/* ============================================
   MODAL — Event Details Popup
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 6vh;
  background: var(--white);
  z-index: 301;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal.open {
  transform: translateY(0);
}

.modal-handle {
  width: 42px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 0;
}

.btn-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.modal-body {
  padding: 8px 16px 60px;
}

/* Modal event details */
.modal-event-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.modal-event-title {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 14px;
}

.modal-details-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #efefef;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

/* PDF Poster in modal */
.modal-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 26px;
  position: relative;
}

.modal-poster iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: relative;
  z-index: 2;
}

.modal-poster-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy), #0d1c56);
  gap: 14px;
}
.modal-poster-bg img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: 0.5;
}
.modal-poster-bg span {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--purple);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Artist popup */
.artist-modal {
  top: auto;
  max-height: 80vh;
}

.artist-modal-body {
  padding-top: 4px;
}

.artist-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.artist-popup-photo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: var(--blue);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-popup-photo span {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.3);
}

.artist-popup-name {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
}

.artist-popup-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}

.artist-popup-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artist-popup-link {
  display: block;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s;
}
.artist-popup-link:active {
  background: #ebebeb;
}

.artist-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.artist-card:active {
  opacity: 0.8;
}

/* Add to calendar */
.cal-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-cal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-cal:active {
  opacity: 0.8;
  transform: scale(0.97);
}
.btn-cal svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-cal-google {
  background: #f0f4ff;
  color: #1949c6;
}
.btn-cal-ical {
  background: #f5f5f5;
  color: #333;
}

/* Lineup */
.lineup-heading {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--black);
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Artist grid */
.artist-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Featured headliner */
.artist-headliner {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid var(--red);
}

.artist-headliner .artist-photo-box {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.artist-headliner .artist-photo-box span {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.3);
}

.artist-headliner .artist-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-headliner .artist-info .headliner-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3px;
}

.artist-headliner .artist-info .artist-name {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Support grid (3 columns) */
.artist-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.artist-photo-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.artist-photo-box span {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.3);
}

.artist-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-name {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */
#galleryLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}
#galleryLightbox.active {
  opacity: 1;
  pointer-events: all;
}

#galleryLightbox .lb-img {
  max-width: 100%;
  max-height: 90dvh;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  -webkit-touch-callout: default;
  user-select: auto;
}

#galleryLightbox .lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

#galleryLightbox .lb-prev,
#galleryLightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
#galleryLightbox .lb-prev { left: 16px; }
#galleryLightbox .lb-next { right: 16px; }
#galleryLightbox .lb-prev:active,
#galleryLightbox .lb-next:active {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}
.img-placeholder span {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.25);
}

/* Past events section */
.past-events-section {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.past-events-heading {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}
.past-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.past-event-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}
.past-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ETHOS PAGE
   ============================================ */
.ethos-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
}
.ethos-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ethos-inline-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ethos-inline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ethos-founders-img {
  width: 100%;
  margin: 0 0 6px;
  border-radius: 16px;
  overflow: hidden;
}
.ethos-founders-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}
.ethos-founders-img figcaption {
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 16px 12px;
  border-radius: 0 0 16px 16px;
}
.ethos-founders-img .founders-label {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.ethos-founders-img .founders-names {
  display: flex;
  justify-content: space-between;
}
.ethos-founders-img .founders-names span {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ethos-intro {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
  text-align: center;
}

.ethos-intro em {
  color: var(--purple);
  font-style: normal;
}

.ethos-block {
  padding: 4px 4px;
  margin-bottom: 4px;
}

.ethos-block h3 {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.ethos-block p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
}

.ethos-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.ethos-divider img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.6;
}

/* ============================================
   ARTIST SET TIMES
   ============================================ */
.artist-set-time {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 2px;
  line-height: 1.3;
}

/* ============================================
   TIMETABLE BUTTON
   ============================================ */
.btn-timetable {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 20px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.5);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-timetable:active {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   CLASHFINDER
   ============================================ */
.modal-clash {
  background: #0a1540;
}
.modal-clash .modal-handle {
  background: rgba(255, 255, 255, 0.2);
}
.modal-clash .btn-modal-close {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.modal-clash .modal-event-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.modal-clash .modal-event-title {
  color: var(--white);
}
.clash-venue {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: -8px 0 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.clash-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 0 20px 8px;
}
.clashfinder {
  min-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.cf-stage-col {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}
.cf-stage-col span {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  line-height: 1.3;
}
.cf-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 6px;
}
.cf-time-header {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  background: none;
  padding: 0;
  gap: 0;
}
.cf-time-header span {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  text-align: left;
  padding-left: 2px;
}
.cf-header-row {
  margin-bottom: 0;
}
.cf-slot {
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  min-height: 68px;
  position: relative;
  overflow: hidden;
}
.cf-slot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px 8px 0 0;
}
.cf-name {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.cf-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

/* Per-artist colours */
.cf-jack  { background: #f72b20; }
.cf-senda { background: #9b59b6; }
.cf-myles { background: #e67e22; }
.cf-brae  { background: #16a085; }
.cf-kez   { background: #c0392b; }
.cf-fonzo { background: #8e44ad; }
.cf-eden  { background: #2980b9; }

/* Artist set time in popup */
.artist-popup-settime {
  font-size: 11px;
  color: var(--red);
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  letter-spacing: 0.06em;
  margin-top: 3px;
  font-weight: 600;
  white-space: pre-line;
  line-height: 1.6;
}

/* ============================================
   GROOVE OF THE WEEK PAGE
   ============================================ */
.groove-featured {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.groove-artwork {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.groove-artwork-placeholder {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 110px;
  color: var(--purple);
  opacity: 0.35;
  user-select: none;
  line-height: 1;
}

.groove-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.groove-info {
  padding: 16px;
}

.groove-week-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.groove-track {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 3px;
}

.groove-artist {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 10px;
}

.groove-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--black);
}

.groove-stream-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.stream-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.stream-btn:active {
  transform: scale(0.95);
  opacity: 0.85;
}

.stream-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.stream-btn span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-spotify    { background: #e8f9ee; color: #1DB954; }
.stream-soundcloud { background: #fff0e6; color: #FF5500; }
.stream-youtube    { background: #ffe8e8; color: #FF0000; }

/* Coming soon banner */
.groove-coming-soon {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.groove-coming-soon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.4;
  filter: brightness(0) invert(1);
}

.groove-coming-title {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.groove-coming-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Past grooves */
.groove-past-section {
  margin-top: 28px;
}

.groove-past-heading {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.groove-past-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.groove-past-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s;
}
.groove-past-card:active {
  transform: scale(0.97);
}

.groove-past-artwork {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.groove-past-artwork span {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: var(--purple);
  opacity: 0.35;
}

.groove-past-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.groove-past-info {
  padding: 10px 12px;
}

.groove-past-info p {
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

.groove-past-info small {
  font-size: 11px;
  color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 500px) {
  .main-wrap {
    max-width: 460px;
    padding: 24px 20px;
  }
  .gallery-section {
    max-width: 460px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .gallery-strip {
    padding: 0 20px 8px;
  }
  .gallery-heading {
    padding-left: 20px;
  }
}

@media (min-width: 768px) {
  .main-wrap {
    max-width: 720px;
  }
  .gallery-section {
    max-width: 720px;
  }
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 120px;
    gap: 0;
  }
  .header-wordmark-wrap {
    height: auto;
    overflow: visible;
    order: 2;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .header-wordmark {
    height: 210px;
    width: auto;
    margin-top: 0;
  }
  .header-row {
    order: 1;
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .header-title {
    flex: none;
    padding-right: 0;
    padding-left: 16px;
    font-size: 22px;
  }
  /* Empty right side to balance the layout */
  .site-header::after {
    content: '';
    flex: 1;
    order: 3;
  }
}
