:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff; /* Brighter white */
    --text-secondary: #c0c0c0; /* Brighter gray */
    --accent-gold: #c5a059;
    --accent-gold-hover: #d4b171;
    --accent-crimson: #8b0000;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-banner: #141414; /* Solid, opaque background */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem; /* Slightly larger global font */
    line-height: 1.8;   /* Increased line spacing */
    overflow-x: hidden;
}

section {
    scroll-margin-top: 75px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2; /* Tighter spacing for multi-line titles */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.8), transparent);
    transition: var(--transition-smooth);
}

.logo {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--accent-gold);
}

/* Hero Section */
.hero {
    width: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    line-height: 0;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    /* Softly overlaps bottom edge of photo without covering any musicians */
    margin-top: -6vw; 
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 6vw 5% 80px;
    background: linear-gradient(to bottom, 
        transparent 0, 
        rgba(15, 15, 15, 0.8) 3vw, 
        var(--bg-dark) 6vw, 
        var(--bg-dark) 100%
    );
    flex-grow: 1;
}

.hero-content-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 4.5rem); /* Slightly smaller maximum and responsive scaling */
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: clamp(0.6rem, 1vw, 1rem) clamp(1.5rem, 2.5vw, 2.5rem);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 0.4s backwards;
    font-size: clamp(0.8rem, 1vw, 1rem);
}

.btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Section General */
section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Cards Section */
.ensembles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.card h3 {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-card);
    text-align: center;
}

.contact-info {
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Media Sections */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Slider */
.video-slider-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 40px 10%; /* Matches other sections */
}

.videos .video-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    padding: 20px 0;
}

.videos .video-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.audio-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.videos .video-item {
    flex: 0 0 calc(33.333% - 1.67rem) !important; /* Adjusted for 2.5rem gap */
    min-width: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.audio-item h3,
.videos .video-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.3;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    min-height: unset !important;
    height: auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: block !important;
    width: 100%;
    position: relative;
    cursor: default;
}

.audio-item h3.is-ticker,
.videos .video-item h3.is-ticker {
    text-overflow: clip !important;
}

.audio-item h3 .ticker-text,
.videos .video-item h3 .ticker-text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    transition: transform 0.35s ease-out;
}

.audio-item .audio-container {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.videos .video-item .video-container {
    margin-top: 0;
    width: 100%;
}

.videos .slider-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 26, 0.9) !important;
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.videos .slider-btn svg {
    width: 30px;
    height: 30px;
}

.videos .slider-btn:hover {
    background: var(--accent-gold) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

.videos .slider-btn.prev {
    left: 0;
}

.videos .slider-btn.next {
    right: 0;
}

@media (max-width: 992px) {
    .videos .video-item {
        flex: 0 0 calc(50% - 1.25rem) !important;
    }
}

@media (max-width: 600px) {
    section.videos {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .videos .video-slider-wrapper {
        padding: 0 !important;
        width: 100%;
        overflow: hidden;
    }
    .videos .video-slider {
        gap: 0 !important;
        width: 100%;
        padding: 10px 0 20px 0;
        scroll-snap-type: x mandatory;
    }
    .videos .video-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        box-sizing: border-box;
        scroll-snap-align: center;
    }
    .audio-item h3,
    .videos .video-item h3 {
        min-height: unset;
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3;
    }
    .videos .video-item h3 {
        padding: 0 15px;
        text-align: center;
    }
    .videos .video-container {
        border-radius: 0 !important;
        width: 100%;
    }
    .videos .slider-btn {
        width: 36px;
        height: 36px;
        background: rgba(15, 15, 15, 0.65) !important;
        border: 1px solid var(--accent-gold) !important;
        color: var(--accent-gold) !important;
        top: calc(50% + 15px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }
    .videos .slider-btn svg {
        width: 16px;
        height: 16px;
    }
    .videos .slider-btn.prev {
        left: 8px;
    }
    .videos .slider-btn.next {
        right: 8px;
    }
}

.audio-container {
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    min-height: 450px;
    height: 450px;
}

.audio-container.single-track {
    min-height: 166px;
    height: 166px;
}

.audio-container.single-track .cookie-placeholder {
    padding: 1rem 1.5rem;
}

.cookie-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    z-index: 5;
    border: 1px dashed var(--accent-gold);
    border-radius: 10px;
}

.cookie-placeholder p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-banner {
    position: fixed;
    bottom: 0px; /* Visible by default for safety */
    left: 0;
    width: 100%;
    background: var(--bg-banner);
    padding: 2.5rem 5%;
    z-index: 10000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--accent-gold);
}

.cookie-banner.hidden {
    bottom: -100% !important;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
}

.cookie-link {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-decoration: underline;
    margin-left: 1rem;
}

/* Cookie Modal */
.cookie-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483647 !important; /* Maximum 32-bit z-index */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.25s ease;
}

.cookie-modal-backdrop.hidden,
.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cookie-modal-dialog {
    background: #181818;
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-gold);
    border-radius: 12px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    padding: 2rem;
    color: var(--text-primary);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.cookie-modal-header h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: var(--transition-smooth);
}

.cookie-modal-close:hover {
    color: var(--accent-gold);
}

.cookie-modal-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.cookie-category:hover {
    border-color: rgba(197, 160, 89, 0.3);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text-primary);
}

.cookie-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.cookie-status-badge {
    font-size: 0.75rem;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    font-weight: 600;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.cookie-modal-footer .btn {
    width: 100%;
    padding: 0.65rem 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    margin: 0;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--accent-gold) !important;
    color: var(--bg-dark) !important;
    border-color: var(--accent-gold) !important;
}

.btn-primary:hover {
    background: var(--accent-gold-hover) !important;
    border-color: var(--accent-gold-hover) !important;
    color: var(--bg-dark) !important;
}

@media (max-width: 600px) {
    .cookie-modal-dialog {
        padding: 1.25rem;
        margin: 10px;
    }
    .cookie-modal-header h3 {
        font-size: 1.2rem;
    }
    .cookie-modal-footer {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .cookie-modal-footer .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Support for legal pages alignment */
.legal-card .legal-item, 
.legal-card .legal-item strong {
    text-align: center;
    display: block;
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: 500px; }
}

@media (max-width: 1200px) {
    nav { padding: 1rem 5%; }
    .logo { font-size: clamp(0.9rem, 4vw, 1.2rem); white-space: nowrap; } /* Ensure 1-line logo */
    
    .menu-toggle { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-card);
        width: 70%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-links.active { right: 0; }
    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding-top: 60px; } 
    .hero-content { 
        margin-top: -6vw; 
        padding: 6vw 5% 60px; 
    }
    .hero h1 { margin-bottom: 1.5rem; }
    .hero p { margin-bottom: 2.5rem; line-height: 1.6; }

    .ensembles-grid, .media-grid { grid-template-columns: 1fr; }
    section { padding: 40px 5%; }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    nav {
        padding: 0.8rem 4%;
    }
    .logo {
        font-size: clamp(0.85rem, 3.8vw, 1.05rem);
        white-space: nowrap;
    }
    .hero {
        padding-top: 50px;
    }
    .hero-content {
        margin-top: -5vw;
        padding: 5vw 4% 40px;
        background: linear-gradient(to bottom, 
            transparent 0, 
            rgba(15, 15, 15, 0.85) 2.5vw, 
            var(--bg-dark) 5vw, 
            var(--bg-dark) 100%
        );
    }
    .hero-buttons {
        gap: 0.8rem;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        word-wrap: break-word;
    }
    .hero p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 2rem;
    }
    .hero p br {
        display: none;
    }
    .card {
        padding: 1.5rem 1.2rem;
    }
    section {
        padding: 35px 4%;
    }
}

footer {
    padding: 2rem 5%;
    background: var(--bg-dark);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1600px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.3);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0.5); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
    }
}

/* Unified Footer across all pages */
footer {
    text-align: center !important;
    padding: 2.5rem 5% !important;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0;
    line-height: 1.8;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    margin: 0 0.15rem;
}

footer a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}
