@import 'band/gradient-bg.css';

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

:root {
    --red: #EC1F27;
    --gold: #FFD700;
    --green: #32CD32;
    --blue: #1D3557;
    --dark: #231F20;
    --grey: #231f20a1;
    --mid-grey: #8c8989;
    --light: #c1c0bf;
    --white: #F1FAEE;
    --neon: #80FFDB;
    --black: #1D3557;
    --dark-green: #003e19;
    --dark-gold: #815c00;
    --dark-red: #5b0000;
    --dark-blue: #0d1b2a;
    --dark-grey: #222;
    --light-red: #ff6b6b;
    --light-gold: #f9c74f;
    --light-green: #90be6d;
    --light-blue: #90e0ef;
    --light-grey: #f8f9fa;
    --pattern-color: #2A9D8F; /* Main pattern color */
    --pattern-secondary-color: #E63946; /* Secondary pattern color */
    --pattern-size: 200px; /* Size of the SVG pattern */
    --pattern-opacity: 0.95;
    --text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --transition-speed: 0.2s;
    --parallax-offset: 2px;
}
body {
    font-family: 'Work Sans', sans-serif;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    min-height: 110dvh;
}
html, body {
overflow-x: hidden !important;
max-width: 100vw;
width: 100vw;
position: relative;
}
/* Disable vertical scroll for band page */
body.band-page,
html:has(body.band-page) {
    overflow-y: hidden !important;
    height: 100vh;
}
/* Prevent horizontal scroll on all elements */
body, * {
box-sizing: border-box;
}
main img,
main picture img {
    max-width: 100%;
    height: auto;
    display: block;
}
.og-image {
    box-shadow: 0 4px 25px var(--mid-grey);
    border-radius: 18px;
    border: 1px solid var(--gold);
    max-width: 100vw;
    max-height: 100vh;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 900px) {
html, body {
overflow-x: hidden !important;
max-width: 100vw;
width: 100vw;
}
.nav-links,
.nav-links.active {
max-width: 250px;
width: 85vw;
left: 0;
right: auto;
overflow-x: hidden;
flex-direction: column !important;
align-items: flex-start !important;
justify-content: flex-start !important;
gap: .3rem !important;
}
.nav-links {
display: none !important; /* Hide nav-links by default on mobile */
}
.nav-links.active {
display: flex !important; /* Show as flex when active on mobile */
}
}
header {
    background: var(--grey);
    background-blend-mode: soft-light;
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    min-width: 850px;
    left: 0;
    height: 40px;
    border-bottom: 3px solid var(--red);
    z-index: 1100;
    padding: 0.2rem .2rem !important;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.header-hidden {
    transform: translateY(-100%);
}
.hamburger-menu {
    position: static;
}
.hamburger {
    position: fixed;

    top: 42px;
    left: 16px; /* Move to top left */
    background: none; /* Remove dark background */
    border: none;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 3001;
    padding: 0.1em 0.3em;
    border-radius: 8px;
    text-shadow: 0 1px 3px var(--dark);
    transition: background 0.2s;
}
.hamburger:active,
.hamburger:focus {
    background: none;
    outline: none;
}

.nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Start hidden off-screen */
    height: 88vh;
    background: linear-gradient(135deg, #111 60%, #222 100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.7);
    display: none; /* Hide nav-links from layout and stacking context */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 3100;
    font-size: 1rem;
    gap: .6rem;
    transition: left 0.7s cubic-bezier(.77,0,.18,1);
    visibility: hidden; /* Hide by default */
    opacity: 0;
    will-change: left, visibility, opacity;
}

.nav-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
    font-size: 1rem;    
    pointer-events: auto; /* Allow interaction when menu is open */
    display: grid; /* Show nav-links when active */
}
.nav-links .menu-close {
   
    grid-row: 1 / 1;
    align-self: start;
    justify-self: end;
    display: block;
    position: static;
    margin-left: 2rem;
    top: 10vh;
    font-size: 1rem;
    background: none;
    border: none;
    color: var(--neon);
    z-index: 3200;
    cursor: pointer;
    transition: background 0.2s;
}
/* Remove absolute positioning from .menu-close outside .nav-links */
.menu-close:focus,
.menu-close:active {
    background: #222;
    outline: none;
}
.nav-links a {
    color: var(--neon);
    text-decoration: none;
    position: relative;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    margin: 0.5rem 0;
    transition: color 0.2s;
    z-index: 1;
}
.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}
.nav-links a:hover:after {
    width: 100%;
}
.menu-close {
    display: block;
    position: absolute;
    top: 1px;
    right: 18px;
    font-size: 1rem;
    background: none;
    border: none;
    color: var(--neon);
    z-index: 3200;
    cursor: pointer;
    padding: 0.1em 0.5em;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    transition: background 0.2s;
}
.menu-close:focus,
.menu-close:active {
    background: #222;
    outline: none;
}
body.menu-open {
    overflow: hidden !important;
    position: fixed; /* Prevents scroll on iOS/Safari */
width: 100vw;    /* Prevents scrollbars from appearing */
    touch-action: none;
    /* Remove pointer-events: none; to allow nav-links interaction */
}
body.menu-open .nav-links,
body.menu-open .nav-overlay,
body.menu-open .hamburger,
body.menu-open .menu-close {
    pointer-events: auto !important;
}
body.menu-open .nav-overlay {
    opacity: 1;
}
/* Hero Section */
.hero {
    opacity: 1;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 5;
    backdrop-filter: blur(20px) brightness(.8);
    transition: opacity 0.5s;
    padding-bottom: 8rem 2rem;
}
.gform-container {
    padding: 2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 18px;
    max-width: 900px;
    margin: 2rem auto;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 25px var(--mid-grey);

}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translateZ(-2px) scale(1.2);
  transform: translate3d(0, var(--parallax-offset, 0), -1px);
  transition: transform 0.1s linear;
  will-change: transform;
}
.parallax-ready .hero::before {
  transition-duration: 0.3s;
}
.parallax-ready .hero {
    opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  transform: translateZ(0);
}
.hero h1 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light);
}
/* Manifesto Section */
.manifesto {
    color: var(--black);
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 25px var(--dark);
    padding: 2rem;
    border-radius: 18px;
    margin: 2rem auto;
    max-width: 1000px;
    border: 1px solid var(--green);
    scroll-margin-top: 80px;
}
.collective-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0rem;
}
.rule-card {
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-left: 4px solid var(--red);
}
.music-section {
    padding: 4rem 2rem;
    gap: 2.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.player-container {
    background: rgba(0,0,0,0.5);
    box-shadow: 0 4px 25px var(--mid-grey);
    border-radius: 18px;
    border: 1px solid var(--light);
    padding: 1.5rem;
    margin: 2rem auto;
    width: min(900px, 100%);
    max-width: 900px;
    position: relative;
    min-height: 220px;
    backdrop-filter: blur(5px);
    transition:
        opacity var(--transition-speed),
        transform var(--transition-speed);
}
.player-container .link-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.player-container:empty::before {
    content: "";
    display: block;
    height: 152px;
    width: 40%;
    background: linear-gradient(90deg,
    rgba(255,255,255,0.1) 25%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 75%);
        animation: loading-pulse 1.5s infinite;
    }
/* Member Card Fixes */
#members {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    justify-content: flex-start;
}
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
    align-items: stretch; /* Ensures all cards stretch to same height */
    /* Remove grid-auto-rows */
}
.member-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    /* Remove height: 100%, min-height: 100%, grid-auto-rows, etc. */
    min-height: 480px; /* Set a fixed min-height for all cards */
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform: rotateY(0deg);
    cursor: pointer;
    overflow: visible;
}
.member-front, .member-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    min-height: 480px; /* Match card min-height */
    height: 100%;
    box-sizing: border-box;
    backface-visibility: hidden;
    border-radius: 18px;
    padding: 1.5rem;
    background: rgba(0,0,0,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.member-front {
    transform: rotateY(0deg);
    z-index: 2;
}
.member-back {
    align-items: flex-end;
    transform: rotateY(180deg);
    z-index: 1;
    opacity: 1;
    filter: blur(10px);
    transition: 
        transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
        opacity 0.3s ease,
        filter 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    
}
.member-card.hovered,
.member-card:focus-within {
transform: rotateY(180deg);
}

.member-card.hovered .member-back,
.member-card:focus-within .member-back {
transform: rotateY(-180deg);
opacity: 1;
filter: none;
}
/* Blur and mirrored blur effects remain unchanged */
/* ...existing code for .mirrored-blur, .mirrored-blur-inner ... */

/* =================
   Media Queries 
   ================= */

/* Mobile & Tablet Styles (max-width: 900px) */
@media (max-width: 900px) {
    /* Base Layout */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
        width: 100vw;
    }

    /* Header & Navigation */
    header {
        position: fixed;
        width: 100%;
        min-width: 740px;
        left: 0;
        height: 40px;
        padding: 0.5rem 1rem !important;
    }

    .header-titles {
        padding: 0 3.5rem;
        font-size: 0.9rem;
    }

    /* Navigation Menu */
    .nav-links {
        max-width: 250px;
        width: 85vw;
        left: 0;
        right: auto;
        height: 88vh;
        background: linear-gradient(135deg, #111 60%, #222 100%);
        box-shadow: 4px 0 24px rgba(0,0,0,0.7);
        padding: 2rem 1rem;
        overflow-x: hidden;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: .7rem !important;
        display: none !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    /* Member Cards */
    .member-card {
        min-height: 400px;
        max-width: 95vw;
        width: 100%;
        perspective: none;
        margin: 0 0 2rem 0;
        position: static;
        z-index: auto;
        transform-style: flat;
    }

    .member-front, 
    .member-back {
        position: static;
        transform: none !important;
        backface-visibility: visible;
        min-height: 400px;
        height: auto;
        width: 100%;
    }

    .member-card.hovered .member-front,
    .member-card:focus-within .member-front {
        display: none;
    }

    .member-card.hovered .member-back,
    .member-card:focus-within .member-back {
        display: block;
        transform: none !important;
        opacity: 1;
    }

    .member-card.hovered,
    .member-card:focus-within {
        transform: none !important;
    }

    /* Update member card mobile styles */
    .member-card {
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .member-card .member-front,
    .member-card .member-back {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
        touch-action: manipulation;
        cursor: pointer;
    }

    .member-card.hovered .member-back,
    .member-card:focus-within .member-back {
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        user-select: text;
        -webkit-user-select: text;
    }

    /* Prevent text selection highlight on tap */
    .member-card a {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: default;
    }
}

/* Small Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .member-grid {
    gap: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .member-card {
    width: 100%;
    min-height: 450px;
  }
  .hamburger {
    font-size: 1.5rem;
    top: 55px;
    left: 10px;
  }
  .hero-content {
    width: 100%;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .og-image {
    width: 100dvh;
  }
}

/* Desktop Styles (min-width: 901px) */
@media (min-width: 901px) {
    .member-card.hovered .member-front,
    .member-card:focus-within .member-front {
        filter: blur(15px);
    }

    .member-card:not(.hovered):not(:focus-within) .member-back {
        filter: blur(15px);
    }
}

a {
    color: #cccccc; /* Light gray */
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline; /* Optional underline on hover */
}

/* Specific link overrides (if needed) */
.nav-links a {
    color: var(--neon); /* Preserves your nav link colors */
}

.nav-links a:hover {
    text-decoration: none;
    color: var(--gold); /* Removes underline */

}
.menu-close {
    display: none; /* Hidden by default */
    position: fixed;
    top: 3px;
    right: 20px;
    font-size: 1rem;
    background: none;
    border: none;
    color: var(--neon);
    z-index: 1001;
    cursor: pointer;
}

.hamburger .menu-close {
    display: block; /* Only shows when menu is active */
}
.video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1010;
  display: flex;
  gap: 1px;
}

.video-controls button {
  background: var(--dark);
  border: 2px solid var(--gold);
  color: var(--green);
  padding: 2px;
  font-size: 2.3rem;
  border-radius: 5%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-controls button:hover {
  background: rgba(255,255,255,0.2);
}

.header-titles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4rem;
    height: 100%;
}

.header-titles h4 {
    font-family: 'Chakra Petch', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-titles {
        padding: 0 3rem;
        font-size: 0.9rem;
    }
}

.video-section {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Set height to 80% of viewport height */
    overflow: hidden;
}

#scrollVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity;
    -webkit-transition: opacity 3s ease;
    transition: opacity 3s cubic-bezier(0.33, 1, 0.68, 1);
}

#scrollVideo.visible {
    opacity: 1;
}

#dsalist {
    padding: 4rem 2rem;
    max-width: 800px; /* Match the anform-container max-width */
    margin: 0 auto;
    
}

.anform-container {
    border: 1px solid var(--red);
    box-shadow: 0 4px 25px var(--mid-grey);
    border-radius: 18px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-height: 600px;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

/* Ensure ActionNetwork embedded form does not exceed 800px and is centered */
.anform-container [id^="can-form-area-"] {
    max-width: 800px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    display: block;
}

/* Social Sharing Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.share-button {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

#form-success {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(50, 205, 50, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--green);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Indicators */
.video-container {
    position: relative;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 5px solid var(--dark);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* player-container positioning merged into primary rule above */

.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 10%;
    height: 10%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.spotify-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.spotify-share a {
    color: var(--neon);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.spotify-share a:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.lazy-image {
    filter: blur(10px);
    transition: filter 0.3s ease-out;
    transform: scale(1.02); /* Slightly larger to prevent blur edges */
    will-change: filter;
}

.lazy-image.loaded {
    filter: blur(0);
    transform: scale(1);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: inherit; /* Inherit border radius from parent */
    transform: translateZ(0); /* Force GPU acceleration */
}

.page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    z-index: 9999;
    transition: width 0.2s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.page-load-progress.complete {
    opacity: 0;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    padding: 2rem;
}

.offer-card {
    background: rgba(0,0,0,0.4);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.offer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.offer-card h3 {
    color: var(--neon);
    font-family: 'Chakra Petch', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.offer-card p, 
.offer-card li {
    color: var(--white);
    line-height: 1.6;
    font-size: 1rem;
}

.offer-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}
.offer-card li {
    margin: 0.5rem 0;
}

.offer-card a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--gold);
    border-radius: 50px;
    margin-top: auto;
}

.offer-card a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Reusable section styles */
.section-padding {
    padding: 4rem 2rem;
}
.section-heading {
    font-family: 'Chakra Petch', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold);
}
.color-green { color: var(--green); }
.color-gold { color: var(--gold); }
.color-red { color: var(--red); }
.text-center {
    text-align: center;
}
.margin-bottom-small {
    margin-bottom: 0.5rem;
}

/* Reusable button styles */
.pill-button {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.pill-button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Utility lists */
.inline-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.inline-list li {
    margin: 0.5rem 0;
}

/* Utility layout */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-margin {
    margin: 0 !important;
}
.larger-text {
    font-size: 1.2em;
}
.margin-left {
    margin-left: 0.5em;
}
.hidden {
    display: none !important;
}

/* Releases section */
.section-subheading {
    color: var(--neon);
    margin-bottom: 1rem;
}
.section-text {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--light);
}
.section-note {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--neon);
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

#past-events-container {
    display: none;
}

.hero-image {
    margin-bottom: 10vh;
}
.section-heading-small {
    font-family: 'Chakra Petch', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold);
}
.section-strong-note {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--neon);
}
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.avatar-green {
    border: 4px solid var(--green);
}
.avatar-red {
    border: 4px solid var(--red);
}
.avatar-default {
    border: 4px solid var(--neon);
}
.member-title {
    color: var(--neon);
    margin-bottom: 0;
}
.member-meta {
    margin: 0;
}
.member-pill {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.8rem;
 
.footer-decor-img {
    height: 88px;
    width: auto;
}
.footer-animations {
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
}
.footer-animations picture {
    display: inline-block;
    margin-right: 0.5rem;
}
   border-radius: 20px;
    font-size: 0.8em;
}
.member-role {
    margin: 0;
}
.member-card h4 {
    color: var(--gold);
    margin-top: 0;
}
.member-card ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
}

/* Band page (musician resources) */
.band-page {
    min-height: 100dvh;
    overflow-y: hidden;
    height: 100vh;
    --player-bg: rgba(29,53,87,0.65);
    --player-border: rgba(255,255,255,0.15);
    --player-radius: 14px;
    --player-pad: 1.25rem;
    --player-accent: var(--gold, #ffb703);
    --player-accent-alt: var(--green, #2a9d8f);
    --player-text: #f1f1f1;
    --player-muted: #b7c1cc;
    --focus-ring: 0 0 0 3px rgba(255,183,3,0.55);
}

.band-page .skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: var(--gold, #ffb703);
    color: #111;
    text-decoration: none;
    font-weight: bold;
}

.band-page .skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Clean header for band page - no dark box or red line */
.band-page header {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none;
    background-blend-mode: normal;
}

.band-page .band-hero {
    min-height: 30dvh;
    max-height: 60dvh;
    padding: 2rem 1.25rem;
    text-align: center;
}

.band-page .band-hero .hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.band-page .band-hero p {
    margin-bottom: 2vh;
}

.band-page .band-section {
    padding: 2rem 1rem;
}

.band-page .playlist-section h2,
.band-page .playlist-section p,
.band-page .books-section h2,
.band-page .books-section p {
    text-align: center;
}

.band-page .book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.band-page .books-section hr {
    margin: 2rem 0;
    opacity: 0.3;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.band-page .player {
    backdrop-filter: blur(6px) saturate(130%);
    background: var(--player-bg);
    border: 1px solid var(--player-border);
    border-radius: var(--player-radius);
    padding: var(--player-pad);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.45);
}

.band-page .now-playing {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--player-accent);
    letter-spacing: 0.5px;
}

.band-page .audio-node {
    width: 100%;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.band-page .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.band-page .control-btn {
    background: linear-gradient(135deg, #1d3557 0%, #264b7f 100%);
    color: var(--player-text);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.3px;
    transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.band-page .control-btn.primary {
    background: linear-gradient(135deg, var(--player-accent-alt) 0%, var(--player-accent) 100%);
    color: #111;
}

.band-page .control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.55);
}

.band-page .control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -3px rgba(0,0,0,0.5);
}

.band-page .control-btn.toggle[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--player-accent) 0%, #ffd86b 100%);
    color: #111;
}

.band-page .control-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.band-page .tracklist-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--player-border);
    border-radius: 10px;
    padding: 0.5rem;
    background: rgba(0,0,0,0.25);
}

.band-page .track-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.band-page .track-list li {
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    color: var(--player-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.band-page .track-list li:hover {
    background: rgba(255,255,255,0.08);
}

.band-page .track-list li.current {
    background: linear-gradient(90deg, var(--player-accent-alt) 0%, var(--player-accent) 100%);
    color: #111;
    font-weight: 600;
}

.band-page .book-list .book-item {
    list-style: none;
}

.band-page .book-link {
    display: block;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg,#2a9d8f 0%,#49b8ad 100%);
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 10px -3px rgba(0,0,0,0.4);
    transition: transform 0.15s, filter 0.15s;
    position: relative;
}

.band-page .book-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.07);
}

.band-page .book-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.band-page .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.band-page .icon-pause {
    display: none;
}

.band-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.band-page .filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.band-page .filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--player-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--player-text);
    transition: background 0.15s, border-color 0.15s;
}

.band-page .filter-option span {
    font-size: 0.75rem;
}

.band-page .filter-option:hover {
    background: rgba(255,255,255,0.12);
}

.band-page .filter-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.band-page .filter-option input[type="radio"]:checked + span {
    color: var(--player-accent);
}

.band-page .filter-option:has(input:checked) {
    background: rgba(255,183,3,0.15);
    border-color: var(--player-accent);
}

.band-page .install-cta {
    display: flex;
    justify-content: flex-end;
    margin: 0.25rem 0 0.5rem;
}

@media (max-width: 640px) {
    .band-page .controls {
        justify-content: center;
    }
    .band-page .install-cta {
        justify-content: center;
    }
}

.band-page .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: linear-gradient(135deg, var(--player-accent-alt) 0%, var(--player-accent) 100%);
    color: #111;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 20px -4px rgba(0,0,0,0.6);
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.band-page .toast:not([hidden]) {
    transform: translateX(-50%) translateY(0);
}

/* Loading state optimizations */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.band-page .book-list.loading,
.band-page .track-list.loading {
    min-height: 200px;
    position: relative;
}

/* Skeleton loader for books */
.band-page .book-list li.skeleton {
    height: 52px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    pointer-events: none;
}

/* Skeleton loader for tracks */
.band-page .track-list li.skeleton {
    height: 36px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    pointer-events: none;
}

/* Loading spinner */
.band-page .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--player-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade in loaded content */
.band-page .book-list li:not(.skeleton),
.band-page .track-list li:not(.skeleton) {
    animation: fadeIn 0.3s ease-out;
}

/* Error state */
.band-page .error-message {
    padding: 1.5rem;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    text-align: center;
    margin: 1rem 0;
}

/* Empty state */
.band-page .empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--player-muted);
    font-style: italic;
}

/* Progressive load: blur to sharp */
.band-page .player.loading {
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
    transition: filter 0.3s, opacity 0.3s;
}

.band-page .player:not(.loading) {
    filter: blur(0);
    opacity: 1;
}

/* Stagger animation for book items */
.band-page .book-list li:nth-child(1) { animation-delay: 0.05s; }
.band-page .book-list li:nth-child(2) { animation-delay: 0.1s; }
.band-page .book-list li:nth-child(3) { animation-delay: 0.15s; }
.band-page .book-list li:nth-child(4) { animation-delay: 0.2s; }
.band-page .book-list li:nth-child(5) { animation-delay: 0.25s; }
.band-page .book-list li:nth-child(6) { animation-delay: 0.3s; }
.band-page .book-list li:nth-child(7) { animation-delay: 0.35s; }
.band-page .book-list li:nth-child(8) { animation-delay: 0.4s; }

/* Track list stagger (first 10) */
.band-page .track-list li:nth-child(1) { animation-delay: 0.03s; }
.band-page .track-list li:nth-child(2) { animation-delay: 0.06s; }
.band-page .track-list li:nth-child(3) { animation-delay: 0.09s; }
.band-page .track-list li:nth-child(4) { animation-delay: 0.12s; }
.band-page .track-list li:nth-child(5) { animation-delay: 0.15s; }
.band-page .track-list li:nth-child(6) { animation-delay: 0.18s; }
.band-page .track-list li:nth-child(7) { animation-delay: 0.21s; }
.band-page .track-list li:nth-child(8) { animation-delay: 0.24s; }
.band-page .track-list li:nth-child(9) { animation-delay: 0.27s; }
.band-page .track-list li:nth-child(10) { animation-delay: 0.3s; }

/* Loading text with pulse */
.band-page .book-list li:only-child,
.band-page .track-list li:only-child {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Improve perceived performance */
.band-page .book-link,
.band-page .track-list li {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .band-page .book-list li,
    .band-page .track-list li,
    .band-page .book-list li.skeleton,
    .band-page .track-list li.skeleton {
        animation: none;
    }

    .band-page .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* =========================
   Shared Components
   ========================= */

.section-heading {
    font-family: 'Chakra Petch', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold);
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--green);
    color: var(--black);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
    color: var(--black);
}

/* =========================
   Events Section
   ========================= */

.events-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border: 1px solid var(--red);
    border-radius: 18px;
    margin-bottom: 2rem;
}

.event-card h3 {
    color: var(--neon);
    font-family: 'Chakra Petch', sans-serif;
    margin-bottom: 0.5rem;
}

.event-card img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 1rem;
}

.event-details {
    list-style: none;
    padding: 0;
}

.event-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.past-events-toggle {
    color: var(--mid-grey);
    font-family: 'Chakra Petch', sans-serif;
    text-align: center;
    margin: 2rem 0 1rem;
    cursor: pointer;
    background: none;
    border: 1px solid var(--mid-grey);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.past-events-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.event-card.past {
    opacity: 0.6;
    border-color: var(--mid-grey);
}

.event-map-wrap {
    width: 100%;
    display: block;
    margin: 1rem 0;
}

.event-map {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 170px;
    min-height: 170px;
    border: 1px solid var(--mid-grey);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.calendar-note {
    margin-top: 0.65rem;
    color: var(--mid-grey);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .event-map {
        height: 150px;
        min-height: 150px;
    }
}

.events-empty {
    text-align: center;
    color: var(--mid-grey);
    font-style: italic;
    padding: 2rem;
}

/* =========================
   Posts / Updates Section
   ========================= */

.posts-preview-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.posts-index {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.post-card-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card h3 {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: var(--neon);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--gold);
}

.post-card time {
    color: var(--mid-grey);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.post-card p {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.post-read-more {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-read-more:hover {
    background: var(--gold);
    color: var(--black);
}

/* Media type badges */
.post-media-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-media-photo { background: var(--gold); color: var(--black); }
.post-media-video { background: var(--red); color: white; }

/* Post tags */
.post-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8em;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--neon);
}

.post-tags {
    margin-top: 0.5rem;
}

/* Full post page */
.post-full {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-title {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--mid-grey);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.post-featured-image {
    width: 100%;
    border-radius: 18px;
    margin: 1.5rem 0;
    object-fit: cover;
}

.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--neon);
}

.post-content a:hover {
    color: var(--gold);
}

.post-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Posts loading state */
.posts-loading,
.events-loading {
    text-align: center;
    color: var(--mid-grey);
    padding: 2rem;
}
