/* ==========================================================================
   Duo CPE Stylesheet
   Modern Heritage Theme - Warm Dark Aesthetic
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    /* Colors */
    --bg-primary: hsl(40, 6%, 8%);
    --bg-secondary: hsl(40, 5%, 12%);
    --bg-tertiary: hsl(40, 5%, 16%);

    --accent-gold: hsl(43, 50%, 60%);
    --accent-gold-hover: hsl(43, 60%, 68%);
    --accent-wood: hsl(28, 45%, 35%);
    --accent-wood-light: hsl(28, 40%, 45%);

    --text-primary: hsl(45, 29%, 92%);
    --text-secondary: hsl(45, 10%, 75%);
    --text-muted: hsl(45, 5%, 52%);
    --border-light: rgba(220, 180, 120, 0.15);
    --border-strong: rgba(220, 180, 120, 0.3);

    /* Fonts */
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-editorial: "Lato", "Avenir Next", Avenir, sans-serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Resets & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

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

:focus-visible {
    outline: 2px solid var(--accent-gold-hover);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(calc(-100% - 24px));
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

body.nav-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-wood);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px;
}

.about-section .section-container,
.media-section .section-container,
.contact-section .section-container {
    padding-top: 36px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
    }

    .section-container {
        padding: 56px 20px;
    }

    .about-section .section-container,
    .media-section .section-container,
    .contact-section .section-container {
        padding-top: 28px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    box-shadow: 0 0 15px rgba(220, 180, 120, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background-color: rgba(220, 180, 120, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* Section Header styling */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-family: var(--font-sans);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-primary);
}

.header-line {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 24px 0;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition:
        padding var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-gold);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 13px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Mobile Icon */
.mobile-nav-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Shrinking Header - Native Scroll timeline animation */
@keyframes shrink-header {
    to {
        padding: 12px 0;
        background-color: rgba(8, 8, 8, 0.95);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .main-header {
        animation: shrink-header auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 100px;
    }
}

/* Shrinking Header - JS Fallback styling */
.main-header.scrolled {
    padding: 12px 0;
    background-color: rgba(8, 8, 8, 0.95);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Mobile responsive menu */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        z-index: 1;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        visibility: hidden;
        pointer-events: none;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-light);
        padding: 100px 40px;
        transition:
            right var(--transition-normal),
            visibility 0s linear 0.35s;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.open {
        right: 0;
        visibility: visible;
        pointer-events: auto;
        transition:
            right var(--transition-normal),
            visibility 0s linear;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    /* Morphing hamburger to Close Icon */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   Hero Section & Statement Card
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden;
    background-color: #81765f;
}

.hero-bg {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 90px);
    z-index: 1;
    overflow: hidden;
    background-image: none !important;
    filter: none;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: -28px;
    background-image: url("../assets/images/duo-hero-1600.webp");
    background-image: image-set(
        url("../assets/images/duo-hero-1600.webp") 1x,
        url("../assets/images/duo-hero-2560.webp") 2x
    );
    background-position: center 47%;
    background-size: cover;
    filter: blur(22px) saturate(0.88) brightness(0.9);
    transform: scale(1.035);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/duo-hero-1600.webp");
    background-image: image-set(
        url("../assets/images/duo-hero-1600.webp") 1x,
        url("../assets/images/duo-hero-2560.webp") 2x
    );
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    filter: brightness(1.04) contrast(1.02);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 calc(100% - 120px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 calc(100% - 120px),
        transparent 100%
    );
}

.hero-content {
    position: absolute;
    inset: 90px 0 0 auto;
    z-index: 2;
    width: 35%;
    min-width: 500px;
    max-width: none;
    margin: 0;
    padding: clamp(28px, 2.4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(
        90deg,
        rgba(14, 14, 13, 0.78),
        rgba(14, 14, 13, 0.88)
    );
    border-left: 1px solid var(--border-light);
    box-shadow: -28px 0 55px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-text-wrap {
    width: 100%;
    max-width: 520px;
}

.hero-title {
    font-size: clamp(4.2rem, 5.8vw, 5.7rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    animation: fade-in-down 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 22px;
}

.hero-divider {
    width: 88px;
    border: 0;
    height: 1px;
    background-color: var(--accent-gold);
    margin-bottom: 24px;
}

.statement-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
    animation: fade-in-up 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-statement,
.hero-statement-extended {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.18vw, 1.22rem);
    font-style: normal;
    line-height: 1.45;
    color: var(--text-secondary);
}

.hero-statement {
    margin-bottom: 12px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-ctas .btn {
    flex: none;
    width: 100%;
    justify-content: center;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 0.72rem;
}

@media (min-width: 993px) and (max-height: 800px) {
    .hero-content {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hero-title {
        font-size: 3.6rem;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }

    .hero-divider {
        margin-bottom: 12px;
    }

    .statement-card {
        margin-bottom: 12px;
    }

    .hero-statement,
    .hero-statement-extended {
        font-size: 1.08rem;
        line-height: 1.28;
    }

    .hero-ctas .btn {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (min-width: 993px) and (max-width: 1250px),
    (min-width: 993px) and (max-aspect-ratio: 4 / 3) {
    .hero-text-wrap {
        max-width: none;
    }

    .hero {
        min-height: 0;
        height: calc(90px + 38.41vw);
        background-color: #81765f;
    }

    .hero-bg {
        width: 55%;
        background-color: transparent;
    }

    .hero-bg::before {
        display: none;
    }

    .hero-bg::after {
        background-position: left center;
        background-size: contain;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-content {
        inset: 90px 0 0 38.9583%;
        width: 61.0417%;
        min-width: 0;
        padding: 18px 24px;
        align-items: center;
        overflow-y: auto;
        background: #1b1a16;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-title {
        font-size: clamp(2.7rem, 4.4vw, 3.2rem);
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 0.68rem;
        margin-bottom: 8px;
    }

    .hero-divider {
        margin-bottom: 8px;
    }

    .statement-card {
        margin-bottom: 8px;
    }

    .hero-statement,
    .hero-statement-extended {
        font-size: 1rem;
        line-height: 1.24;
    }

    .hero-statement {
        margin-bottom: 7px;
    }

    .hero-ctas {
        flex-direction: row;
        gap: 6px;
    }

    .hero-ctas .btn {
        flex: 1;
        width: auto;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 16px 0;
    }

    .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-top: 72px;
    }

    .hero-bg {
        position: relative;
        top: auto;
        width: 100%;
        aspect-ratio: 3280 / 2805;
        height: auto;
        background-image:
            linear-gradient(
                to bottom,
                rgba(10, 10, 10, 0.1),
                rgba(10, 10, 10, 0.5)
            ),
            url("../assets/images/duo-mobile-1000.webp") !important;
        background-image:
            linear-gradient(
                to bottom,
                rgba(10, 10, 10, 0.1),
                rgba(10, 10, 10, 0.5)
            ),
            image-set(
                url("../assets/images/duo-mobile-1000.webp") 1x,
                url("../assets/images/duo-mobile-2000.webp") 2x
            ) !important;
        background-size: cover;
        background-position: center 15%;
        background-repeat: no-repeat;
        z-index: 1;
        overflow: visible;
        filter: brightness(1.08) contrast(1.01);
    }

    .hero-bg::before,
    .hero-bg::after {
        display: none;
    }

    .hero-content {
        position: relative;
        inset: auto;
        z-index: 2;
        width: 100%;
        min-width: 0;
        max-width: 1800px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 0;
        padding: 40px 20px 60px;
        align-items: stretch;
        justify-content: center;
        overflow: visible;
        background: var(--bg-primary);
        border-left: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-text-wrap {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3.5rem;
        text-align: center;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
        text-align: center;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .hero-divider {
        margin: 0 auto 25px;
    }

    .statement-card {
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--border-light);
        border-radius: 8px;
        padding: 24px;
        box-shadow: var(--shadow-lg);
    }

    .hero-statement,
    .hero-statement-extended {
        font-size: 1.2rem;
        line-height: 1.65;
        color: var(--text-primary);
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }

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

/* ==========================================================================
   Biography Section
   ========================================================================== */
.artists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.artist-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 180, 120, 0.3);
}

.artist-image-container {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform var(--transition-slow);
}

.andrea-image {
    object-position: center 30%;
}

.mikhail-image {
    object-position: center top;
}

.artist-card:hover .artist-image {
    transform: scale(1.05);
}

.artist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 20%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.artist-overlay h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.artist-overlay p {
    font-family: var(--font-sans);
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.artist-info {
    flex: 1;
    padding: 30px;
}

.artist-name {
    font-size: 2rem;
    margin-bottom: 8px;
    display: none; /* Displayed in image overlay but nice fallback */
}

.artist-role {
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--accent-gold);
    margin-left: 10px;
    text-transform: uppercase;
}

.artist-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-left: 2px solid var(--accent-gold);
    padding-left: 15px;
}

.bio-content p {
    font-family: var(--font-editorial);
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.012em;
    margin-bottom: 18px;
}

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

@media (max-width: 992px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .artist-image-container {
        height: 420px;
    }
    .mikhail-image {
        object-position: 75% top;
    }
}

/* ==========================================================================
   Media Showcase Section (Recordings)
   ========================================================================== */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-btn.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(220, 180, 120, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Audio Player */
.audio-player-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 40px;
    box-shadow: var(--shadow-md);
    align-items: center;
}

.player-widget {
    min-width: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-cover {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 4px solid var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

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

.vinyl-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-gold);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Spinning Cover when playing */
.player-cover.playing {
    animation: spin 15s linear infinite;
}

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

.player-meta {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.player-meta h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta p {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-container {
    width: 100%;
    height: 44px;
    background-color: transparent;
    margin-bottom: 0;
    position: relative;
    cursor: pointer;
    touch-action: none;
}

.progress-container::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 6px;
    border-radius: 3px;
    background-color: var(--bg-secondary);
    transform: translateY(-50%);
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 100%;
    max-height: 6px;
    background-color: var(--accent-gold);
    border-radius: 3px;
    width: 0%;
    transform: translateY(-50%);
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background-color: var(--text-primary);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: relative;
}

.control-buttons button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.control-buttons button:hover {
    color: var(--accent-gold);
}

.control-buttons button:active {
    transform: scale(0.9);
}

.control-buttons button#playBtn {
    font-size: 1.8rem;
    color: var(--accent-gold);
    background-color: var(--bg-secondary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.control-buttons button#playBtn:hover {
    color: var(--bg-primary);
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(220, 180, 120, 0.4);
}

.volume-slider-container {
    display: flex;
    align-items: center;
    width: 90px;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-container input[type="range"] {
    width: 100%;
    min-height: 44px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.player-status {
    min-height: 1.4em;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.player-status:empty {
    margin-top: 0;
    min-height: 0;
}

.player-status.error {
    color: hsl(0, 80%, 72%);
}

/* Playlist styling */
.playlist-container {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.playlist-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.playlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playlist > li {
    min-width: 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.playlist-item:hover {
    background-color: rgba(220, 180, 120, 0.05);
    border-color: var(--border-light);
}

.playlist-item.active {
    background-color: rgba(220, 180, 120, 0.08);
    border-color: var(--accent-gold);
}

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

.track-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-gold);
    width: 35px;
}

.track-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.track-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.track-details {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.track-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .audio-player-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .media-tabs {
        gap: 8px;
    }

    .tab-btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .audio-player-container {
        gap: 28px;
        padding: 16px;
    }

    .player-widget {
        padding: 18px;
    }

    .control-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .volume-controls {
        flex-basis: 100%;
        justify-content: center;
    }

    .volume-slider-container {
        width: 120px;
    }

    .playlist-item {
        padding: 12px;
    }
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.video-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

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

.video-thumbnail-container {
    position: relative;
    height: 250px;
    cursor: pointer;
}

.video-thumbnail-container.video-embed {
    aspect-ratio: 16 / 9;
    height: auto;
    cursor: default;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-placeholder-thumb {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.4rem;
    transition: all var(--transition-fast);
}

.video-thumbnail-container:hover .play-overlay {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(220, 180, 120, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-lightbox.open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.media-placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 20px;
    text-align: center;
    padding: 40px;
}

.media-placeholder-message i {
    font-size: 3rem;
    color: var(--accent-gold);
}

/* ==========================================================================
   Concert Calendar Section
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical line */
.timeline::after {
    content: "";
    position: absolute;
    width: 2px;
    background-color: var(--border-light);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 70px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--accent-gold);
    left: 30px;
    top: 6px;
    transform: translateX(-50%);
    z-index: 2;
    transition: background-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(220, 180, 120, 0.6);
}

.timeline-date {
    font-family: var(--font-sans);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.timeline-content:hover {
    border-color: rgba(220, 180, 120, 0.25);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.concert-venue {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.concert-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.concert-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(220, 180, 120, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

.timeline-item.upcoming .timeline-dot {
    background-color: var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 180, 120, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(220, 180, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 180, 120, 0);
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    min-width: 0;
}

.contact-info-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background-color: rgba(220, 180, 120, 0.08);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.info-text h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-text p a:hover {
    color: var(--accent-gold);
}

.info-text p a {
    overflow-wrap: anywhere;
}

.info-text {
    min-width: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
}

/* Floating Label Animation */
.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

/* Shift label when input has text or is focused */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--accent-gold);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-gold);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--accent-gold-hover);
    outline-offset: 4px;
}

/* Formspree validation styling */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-bottom-color: hsl(0, 70%, 50%);
}

.form-group input[aria-invalid="true"] ~ label,
.form-group textarea[aria-invalid="true"] ~ label {
    color: hsl(0, 70%, 50%);
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 0.7rem;
    color: hsl(0, 80%, 72%);
    display: none;
}

.error-msg:not(:empty) {
    display: block;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--accent-gold);
}

.btn-submit:disabled {
    background-color: var(--border-light);
    border-color: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.form-status:empty {
    display: none;
}

.form-status-success {
    color: hsl(120, 60%, 50%);
}

.form-status-error {
    color: hsl(0, 80%, 72%);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 28px 24px;
    }

    .info-item {
        gap: 12px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: hsl(40, 6%, 5%);
    border-top: 1px solid var(--border-light);
    padding: 40px 24px 50px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-logo span {
    color: var(--accent-gold);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animation Timelines & Progressive Reveals (Native CSS Timeline)
   ========================================================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: Elements transition using class added by IntersectionObserver */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--transition-slow),
        transform 0.8s var(--transition-slow);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Disable transitions and use native Scroll timelines if supported */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: unset;
            transform: unset;
            transition: unset;
            animation: fade-in-up auto linear both;
            animation-timeline: view();
            animation-range: entry 5% entry 40%;
        }

        /* Extra delay/reveal stagger helper animations can go here if needed */
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .player-cover.playing {
        animation: none;
    }
}
