/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    /* Warm, readable serif for that analog, testimonial feel */
    font-family: 'Georgia', 'Iowan Old Style', 'Times New Roman', serif;
    background-color: #0f0f0f; /* Darkened from #151515 for even deeper leather */
    color: #e0ddd5; /* Improved from #d4d0c8 for better contrast */
    line-height: 1.75;
    padding: 20px;
    font-size: 18px;
    /* Black leather texture with pebbled grain effect */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='leatherFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.35' numOctaves='5' stitchTiles='stitch' seed='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23leatherFilter)' opacity='0.22'/%3E%3C/svg%3E");
    position: relative;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: 750px; /* Increased from 680px */
    margin: 0 auto;
    padding: 40px 20px 120px 20px; /* Extra bottom padding for sticky footer */
    /* Johannine candlelight glow - light shining in darkness */
    position: relative;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(201, 164, 122, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 60%, rgba(224, 198, 167, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 164, 122, 0.025) 0%, transparent 45%);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
    /* Restrained, weathered headline */
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #e8e4dc;
    line-height: 1.2;
    letter-spacing: -0.01em;
    /* Johannine light element - subtle glow */
    text-shadow: 0 0 20px rgba(232, 228, 220, 0.1);
    transition: text-shadow 0.4s ease;
}

/* Desktop fire: Title intensifies glow on hover */
h1:hover {
    text-shadow: 0 0 30px rgba(232, 228, 220, 0.18);
}

/* Hide mobile line break on desktop */
.mobile-break {
    display: none;
}

h2 {
    /* Section headers - brass inscriptions, prominent chapter headings */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem; /* Larger: 1.3rem → 1.5rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* More generous spacing */
    margin-top: 3.5rem;
    margin-bottom: 1.75rem;
    color: #d4a574; /* Bright brass instead of gray */
    text-align: left;
    transition: all 0.3s ease;
    
    /* Recessed into leather effect */
    text-shadow: 
        /* Inset shadow - pushed into surface */
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.6),
        /* Subtle golden glow from within */
        0 0 15px rgba(212, 165, 116, 0.2);
    
    /* Additional depth */
    padding: 0.5rem 0;
}

/* Desktop fire: Section headers intensify on hover */
h2:hover {
    color: #f0d4a8; /* Brighter brass */
    /* Glow intensifies, inset remains */
    text-shadow: 
        0 -1px 0 rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(240, 212, 168, 0.35);
}

h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #c8c4bb;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    color: #e0ddd5; /* Match body text for better contrast */
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Emphasis text - for preview/pull quotes */
.emphasis-text,
.preview-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 1.65;
    color: #e0ddd5;
    font-style: italic;
    margin: 2.5rem 0;
    padding: 0 1.5rem;
    /* Johannine contemplative glow */
    text-shadow: 0 0 15px rgba(224, 221, 213, 0.08);
}

a {
    color: #d4a574; /* Warmer, more luminous gold */
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    /* Subtle glow on links - light imagery */
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.15);
}

a:hover {
    color: #f0d4a8; /* Brighter, candlelight glow */
    border-bottom-color: #d4a574;
    text-shadow: 0 0 12px rgba(240, 212, 168, 0.3);
}

/* Active state for mobile - gives immediate visual feedback */
a:active {
    color: #f0d4a8;
    border-bottom-color: #d4a574;
    text-shadow: 0 0 15px rgba(240, 212, 168, 0.5);
    transform: scale(0.98);
}

/* ===================================
   FOCUS INDICATORS (Accessibility)
   =================================== */

/* Visible focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
details:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 3px;
    border-radius: 2px;
    box-shadow: 
        0 0 0 4px rgba(212, 165, 116, 0.2),
        0 0 12px rgba(240, 212, 168, 0.4);
}

/* Special focus for back-to-top button */
.back-to-top:focus-visible {
    outline: 2px solid #f0d4a8;
    outline-offset: 2px;
    box-shadow: 
        0 0 0 4px rgba(240, 212, 168, 0.3),
        0 0 20px rgba(240, 212, 168, 0.5);
}

/* ===================================
   HEADER
   =================================== */

header {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #2d2a25;
    /* Replaced with a gradient to soften the line */
    background: linear-gradient(to bottom, transparent 98%, #2d2a25 100%);
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.05rem;
    color: #7a766d;
    font-style: italic;
    margin-top: 1rem;
    font-weight: 300;
}

/* "Presented by" text above logo */
.subtitle-text {
    font-size: 1.3rem; /* Increased from 1.1rem */
    color: #c9a47a; /* Warm muted beige/tan - matches leather tones */
    font-style: italic;
    margin-top: 0.75rem;
    margin-bottom: -1.5rem; /* Much closer - overlapping into logo */
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.03em;
    text-shadow: 0 0 8px rgba(201, 164, 122, 0.2); /* Subtle warm glow */
}

/* The Tenth Hour logo */
.tenth-hour-logo {
    max-width: 320px; /* Reduced from 400px */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    margin-bottom: 4rem;
}

.about-preview {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem !important; /* Much larger - very prominent */
    color: #f5f3ed !important; /* Almost white - very bright */
    margin-bottom: 2rem;
    line-height: 1.75;
    font-style: italic;
    text-align: center !important;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500; /* Bolder weight */
    letter-spacing: 0.01em; /* Slight spacing for elegance */
    /* Very strong Johannine glow */
    text-shadow: 0 0 40px rgba(245, 243, 237, 0.3) !important;
    padding: 1rem 2rem; /* Add padding for breathing room */
}

/* ===================================
   ABOUT THIS MUSIC SECTION
   =================================== */

.about-music-section {
    margin: 4.5rem 0;
}

.about-music-section h3 {
    /* Match LESSONS styling - brass inscription */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem; /* Larger: 1.3rem → 1.5rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d4a574; /* Bright brass */
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: center;
    
    /* Recessed into leather effect */
    text-shadow: 
        /* Inset shadow - pushed into surface */
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.6),
        /* Subtle golden glow from within */
        0 0 15px rgba(212, 165, 116, 0.2);
    
    /* Additional depth */
    padding: 1rem 0;
    position: relative;
}

.about-music-section .preview-text {
    margin-bottom: 1.5rem;
}

/* Production note styling when in accordion */
.about-music-section .production-note {
    font-style: italic;
    color: #a8a49b;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
    /* Subtle warmth */
    text-shadow: 0 0 8px rgba(168, 164, 155, 0.08);
}

/* Golden divider within accordion content */
.about-music-section .content-divider {
    max-width: 12rem;
    margin: 2.5rem auto;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.4), transparent);
    box-shadow: 0 0 6px rgba(212, 165, 116, 0.15);
}

/* ===================================
   ACCORDION / DETAILS
   For the "Read More" sections - optimized for extended reading
   =================================== */

.accordion {
    margin-top: 2rem;
    border-top: 1px solid #2d2a25; /* Softened divider */
    padding-top: 1.25rem;
}

/* Smooth closing: fade out content when closing - EVEN MORE GENTLE */
.accordion[closing] .accordion-content {
    animation: accordionFadeOut 1.6s ease-in-out forwards; /* Even slower: 1.2s → 1.6s */
    pointer-events: none;
}

/* Rotate arrow gently when closing */
.accordion[closing] summary::before {
    transform: rotate(0deg);
    transition: transform 1.2s ease-out; /* Slower arrow rotation */
}

@keyframes accordionFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 0.4; /* Linger LONGER before fully fading */
        transform: translateY(-3px);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px); /* Even less movement */
    }
}

.accordion summary {
    cursor: pointer;
    color: #d4a574; /* Warmer Johannine gold */
    font-family: 'Georgia', 'Iowan Old Style', 'Times New Roman', serif; /* Match body text */
    font-weight: normal;
    font-style: italic; /* Gentle invitation, not command */
    font-size: 1rem; /* Slightly larger for readability */
    letter-spacing: 0.02em; /* Subtle spacing */
    list-style: none;
    padding: 0.75rem 0;
    margin-top: -0.75rem; /* Strong negative margin to pull very close to preview text */
    user-select: none;
    transition: all 0.3s ease; /* Slower, more contemplative */
    text-align: center;
    
    /* Pure text - no box, just ember glow beneath */
    background: transparent;
    border: none;
    
    /* Ember glow underneath text */
    text-shadow: 
        0 2px 8px rgba(212, 165, 116, 0.3),
        0 4px 15px rgba(240, 212, 168, 0.2);
    
    /* Animated ember glow */
    animation: emberGlow 3s ease-in-out infinite;
}

/* Ember glow animation - fire beneath the text */
@keyframes emberGlow {
    0%, 100% {
        text-shadow: 
            0 2px 8px rgba(212, 165, 116, 0.3),
            0 4px 15px rgba(240, 212, 168, 0.2);
    }
    50% {
        text-shadow: 
            0 2px 12px rgba(240, 212, 168, 0.5),
            0 4px 20px rgba(212, 165, 116, 0.4),
            0 6px 25px rgba(255, 200, 100, 0.2);
    }
}

.accordion summary:hover {
    color: #f0d4a8; /* Brighter candlelight gold hover */
    /* Intensify ember glow on hover */
    text-shadow: 
        0 2px 15px rgba(240, 212, 168, 0.6),
        0 4px 25px rgba(212, 165, 116, 0.5),
        0 6px 35px rgba(255, 200, 100, 0.3);
    animation: none; /* Stop animation, show brightest state */
}

/* Active state for mobile taps */
.accordion summary:active {
    color: #f0d4a8;
    text-shadow: 
        0 2px 18px rgba(240, 212, 168, 0.7),
        0 4px 30px rgba(212, 165, 116, 0.6),
        0 6px 40px rgba(255, 200, 100, 0.4);
    transform: scale(1.02);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::before {
    content: "\25B8  ";
    display: inline-block;
    transition: transform 0.2s ease;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.accordion[open] summary::before {
    transform: rotate(90deg);
}

/* === SYNTAX ERROR FIXED HERE === */
.accordion-content {
    /* TRUE OFF-WHITE aged vellum with MORE VISIBLE texture */
    background: 
        /* Stronger paper fiber texture - crosshatch pattern */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(210, 200, 185, 0.08) 1px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            rgba(210, 200, 185, 0.06) 1px,
            transparent 2px,
            transparent 4px
        ),
        /* Fine horizontal paper grain */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            rgba(200, 190, 175, 0.04) 1px,
            transparent 2px,
            transparent 6px
        ),
        /* Subtle aged spots/variations */
        radial-gradient(ellipse at 25% 30%, rgba(210, 200, 180, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 60%, rgba(205, 195, 175, 0.05) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(215, 205, 185, 0.04) 0%, transparent 30%),
        /* Pure aged off-white base - warm cream tone */
        #f8f5ee;
    
    /* Create nested reading panel */
    margin-top: 1.5rem;
    margin-bottom: 2rem; /* Added bottom margin to keep away from stitches */
    padding: 2.5rem 2rem 3.5rem 2rem; /* Added extra bottom padding */
    border-radius: 8px;
    
    /* Subtle aged paper vignette with worn edges */
    box-shadow: 
        /* Inner vignette - darkened edges like aged paper */
        inset 0 0 80px rgba(0, 0, 0, 0.04),
        inset 0 0 40px rgba(139, 119, 92, 0.05),
        /* Top edge wear - slightly darker/yellowed */
        inset 0 3px 6px -2px rgba(180, 160, 130, 0.15),
        /* Bottom edge - subtle shadow like curled paper */
        inset 0 -2px 4px -1px rgba(120, 100, 70, 0.08),
        /* Left edge wear */
        inset 3px 0 6px -2px rgba(160, 140, 110, 0.1),
        /* Right edge wear */
        inset -3px 0 6px -2px rgba(160, 140, 110, 0.1),
        /* Corner darkening - like handled pages */
        inset 20px 20px 40px -30px rgba(139, 119, 92, 0.08),
        inset -20px 20px 40px -30px rgba(139, 119, 92, 0.08),
        inset 20px -20px 40px -30px rgba(139, 119, 92, 0.06),
        inset -20px -20px 40px -30px rgba(139, 119, 92, 0.06),
        /* Outer shadow for depth */
        0 2px 8px rgba(0, 0, 0, 0.15);
    
    /* Slight border to suggest worn edge */
    border: 1px solid rgba(180, 165, 140, 0.25);
    
    position: relative;
    
    /* PURE BLACK ink on off-white paper - maximum contrast */
    color: #000000 !important;
    animation: fadeIn 1.4s ease;
    
    /* Optimized for extended reading */
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 38rem;
    
    /* NO opacity issues */
    opacity: 1 !important;
}

/* Subtle corner wear marks */
.accordion-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    /* Very subtle noise texture for paper grain feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: multiply;
}

/* Base crease pattern (Pattern 1 - default) */
.accordion-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    background:
        /* Diagonal crease from top-left area */
        linear-gradient(
            155deg,
            transparent 0%,
            transparent 18%,
            rgba(120, 100, 70, 0.12) 18.3%,
            rgba(160, 140, 110, 0.06) 18.6%,
            transparent 19%,
            transparent 100%
        ),
        /* Soft horizontal fold line in upper third */
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 28%,
            rgba(100, 80, 50, 0.1) 28.2%,
            rgba(180, 165, 140, 0.05) 28.5%,
            transparent 29%,
            transparent 100%
        ),
        /* Gentle vertical crease on right side */
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 72%,
            rgba(110, 90, 60, 0.08) 72.2%,
            rgba(170, 155, 130, 0.04) 72.5%,
            transparent 73%,
            transparent 100%
        );
}

/* Pattern 2 - Different angles and positions */
.accordion:nth-of-type(4n+2) .accordion-content::after {
    background:
        /* Diagonal from top-right */
        linear-gradient(
            -145deg,
            transparent 0%,
            transparent 22%,
            rgba(115, 95, 65, 0.11) 22.3%,
            rgba(155, 135, 105, 0.05) 22.6%,
            transparent 23%,
            transparent 100%
        ),
        /* Horizontal fold lower */
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 65%,
            rgba(105, 85, 55, 0.09) 65.2%,
            rgba(175, 160, 135, 0.04) 65.5%,
            transparent 66%,
            transparent 100%
        ),
        /* Vertical crease left side */
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 25%,
            rgba(100, 80, 50, 0.07) 25.2%,
            rgba(165, 150, 125, 0.03) 25.5%,
            transparent 26%,
            transparent 100%
        );
}

/* Pattern 3 - Subtle corner creases */
.accordion:nth-of-type(4n+3) .accordion-content::after {
    background:
        /* Corner crease top-right */
        linear-gradient(
            -35deg,
            transparent 0%,
            transparent 12%,
            rgba(110, 90, 60, 0.1) 12.3%,
            rgba(160, 145, 120, 0.05) 12.6%,
            transparent 13%,
            transparent 100%
        ),
        /* Gentle wave mid-page */
        linear-gradient(
            185deg,
            transparent 0%,
            transparent 45%,
            rgba(95, 75, 45, 0.08) 45.2%,
            rgba(150, 135, 110, 0.04) 45.5%,
            transparent 46%,
            transparent 100%
        ),
        /* Bottom corner fold */
        linear-gradient(
            35deg,
            transparent 0%,
            transparent 88%,
            rgba(105, 85, 55, 0.09) 88.3%,
            rgba(165, 150, 125, 0.04) 88.6%,
            transparent 89%,
            transparent 100%
        );
}

/* Pattern 4 - Horizontal emphasis */
.accordion:nth-of-type(4n) .accordion-content::after {
    background:
        /* Upper horizontal crease */
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 18%,
            rgba(100, 80, 50, 0.1) 18.2%,
            rgba(175, 160, 135, 0.05) 18.5%,
            transparent 19%,
            transparent 100%
        ),
        /* Lower horizontal crease */
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 75%,
            rgba(95, 75, 45, 0.08) 75.2%,
            rgba(170, 155, 130, 0.04) 75.5%,
            transparent 76%,
            transparent 100%
        ),
        /* Slight diagonal accent */
        linear-gradient(
            165deg,
            transparent 0%,
            transparent 40%,
            rgba(110, 90, 60, 0.06) 40.2%,
            rgba(160, 145, 120, 0.03) 40.5%,
            transparent 41%,
            transparent 100%
        );
}

/* FORCE PURE BLACK TEXT - Maximum specificity */
.accordion-content,
.accordion-content *,
.accordion-content p,
.accordion-content span,
.accordion-content div {
    color: #000000 !important;
    opacity: 1 !important;
}

/* Elegant drop cap on first paragraph - illuminated manuscript style */
.accordion-content > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.85;
    margin: 0.05em 0.1em 0 0;
    padding-right: 0.05em;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
    color: #c9a47a !important; /* Brass/gold - override black */
    text-shadow: 
        0 0 10px rgba(212, 165, 116, 0.3),
        1px 1px 0 rgba(240, 212, 168, 0.2);
}

/* Enhanced paragraph spacing for better scannability */
.accordion-content p {
    margin-bottom: 2rem; /* Increased from 1.75rem for better scanning */
}

/* Add breathing room between sections */
.accordion-content p + p {
    text-indent: 0;
}

/* Cascading fade DISABLED - content appears instantly */
/*
.accordion-content > * {
    animation: cascadeAccordionFade 1.2s ease-out backwards;
}

.accordion-content > *:nth-child(1) { animation-delay: 0.15s; }
.accordion-content > *:nth-child(2) { animation-delay: 0.35s; }
.accordion-content > *:nth-child(3) { animation-delay: 0.55s; }
.accordion-content > *:nth-child(4) { animation-delay: 0.75s; }
.accordion-content > *:nth-child(5) { animation-delay: 0.95s; }
.accordion-content > *:nth-child(6) { animation-delay: 1.15s; }

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

/* Disable animations temporarily (used to force restart) */
.no-animate,
.no-animate > * {
    animation: none !important;
}
/* === END FIX === */


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px); /* Slightly more movement */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   LESSONS SECTION
   =================================== */

.lessons-section {
    margin-top: 4rem;
}

.lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lessons-section h2 {
    text-align: center;
    margin-bottom: 0;
    flex: 1;
}

/* Sort Toggle Button */
.sort-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: rgba(42, 38, 33, 0.6);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    color: #c9a47a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sort-toggle:hover {
    background: rgba(52, 48, 43, 0.8);
    border-color: rgba(212, 165, 116, 0.5);
}

.sort-toggle:active {
    transform: scale(0.98);
}

.sort-label {
    font-weight: 500;
}

.sort-icon {
    fill: #c9a47a;
    transition: transform 0.3s ease;
}

.sort-toggle.flipped .sort-icon {
    transform: rotate(180deg);
}

#lessons-list {
    margin-top: 2rem;
}

.lesson-item {
    margin-bottom: 1rem; /* Slightly more spacing for visible stacking */
    position: relative;
}

/* BOLD IRREGULAR STACKING - each journal randomly offset and rotated */
.lesson-item:nth-child(1) { 
    transform: translateX(-8px) rotate(-0.8deg);
}
.lesson-item:nth-child(2) { 
    transform: translateX(12px) rotate(0.6deg);
}
.lesson-item:nth-child(3) { 
    transform: translateX(-5px) rotate(-0.4deg);
}
.lesson-item:nth-child(4) { 
    transform: translateX(15px) rotate(0.9deg);
}
.lesson-item:nth-child(5) { 
    transform: translateX(-10px) rotate(-0.7deg);
}
.lesson-item:nth-child(n+6) { 
    transform: translateX(8px) rotate(0.5deg);
}

.lesson-item a {
    display: block;
    /* SPINE PROPORTIONS - wider than tall, like looking at book spine */
    padding: 1.75rem 4rem;
    min-height: 120px;
    
    /* Rich TEXTURED leather spine - BOLD VISIBLE GRAIN */
    background: 
        /* VERY BOLD vertical grain - highly visible leather texture */
        repeating-linear-gradient(
            0deg,
            rgba(80, 72, 62, 0.8) 0px,
            rgba(70, 65, 58, 0.6) 1px,
            rgba(60, 55, 50, 0.5) 2px,
            transparent 3px,
            transparent 4px
        ),
        /* Strong horizontal cross-grain - prominent basket weave */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(70, 62, 54, 0.5) 1px,
            rgba(62, 56, 48, 0.4) 2px,
            transparent 3px,
            transparent 5px
        ),
        /* Visible pebbled leather bumps */
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0px,
            rgba(75, 68, 58, 0.35) 2px,
            transparent 3px,
            transparent 6px
        ),
        /* VERY BOLD worn spots - highly visible use areas */
        radial-gradient(ellipse at 20% 30%, rgba(90, 80, 68, 0.9) 0%, rgba(75, 68, 60, 0.4) 35%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(85, 75, 65, 0.85) 0%, rgba(72, 65, 57, 0.35) 32%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(82, 72, 62, 0.8) 0%, rgba(70, 63, 55, 0.3) 30%, transparent 40%),
        radial-gradient(ellipse at 15% 65%, rgba(80, 70, 60, 0.75) 0%, rgba(68, 61, 53, 0.25) 28%, transparent 35%),
        /* PROMINENT scuff marks and scratches */
        linear-gradient(
            95deg,
            transparent 28%,
            rgba(90, 82, 70, 0.6) 32%,
            rgba(85, 78, 68, 0.5) 35%,
            transparent 40%
        ),
        linear-gradient(
            88deg,
            transparent 58%,
            rgba(88, 80, 68, 0.55) 61%,
            rgba(82, 75, 65, 0.45) 64%,
            transparent 68%
        ),
        /* Additional texture - leather creases */
        linear-gradient(
            92deg,
            transparent 0%,
            transparent 45%,
            rgba(75, 68, 58, 0.3) 48%,
            transparent 52%,
            transparent 100%
        ),
        /* Strong lighting gradient - dramatic contrast */
        linear-gradient(180deg, 
            rgba(78, 70, 62, 1) 0%,
            rgba(65, 58, 50, 1) 20%,
            rgba(55, 50, 45, 1) 40%,
            rgba(50, 46, 41, 1) 60%,
            rgba(45, 41, 36, 1) 80%,
            rgba(40, 36, 31, 1) 100%
        );
    
    /* WORN ROUNDED CORNERS - like old books */
    border-radius: 8px;
    
    /* TOP EDGE - stronger light catch */
    border-top: 3px solid rgba(240, 212, 168, 0.5);
    
    /* BOTTOM EDGE - heavier contact shadow */
    border-bottom: 4px solid rgba(12, 10, 8, 0.9);
    
    /* SIDE EDGES */
    border-left: 1px solid rgba(35, 32, 28, 0.6);
    border-right: 1px solid rgba(35, 32, 28, 0.6);
    
    /* MASSIVE 3D DEPTH - true stacked realism */
    box-shadow: 
        /* TOP HIGHLIGHT - bright light */
        inset 0 3px 0 rgba(255, 250, 230, 0.3),
        inset 0 5px 8px rgba(255, 255, 255, 0.12),
        
        /* INNER VOLUME - deep recess */
        inset 0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 -4px 15px rgba(0, 0, 0, 0.5),
        inset 3px 0 10px rgba(0, 0, 0, 0.4),
        inset -3px 0 10px rgba(0, 0, 0, 0.4),
        
        /* MASSIVE STACKING SHADOWS - 10 layers for dramatic depth */
        0 4px 0 rgba(45, 42, 38, 0.7),
        0 8px 2px rgba(40, 37, 33, 0.65),
        0 12px 3px rgba(35, 32, 28, 0.6),
        0 16px 4px rgba(30, 27, 23, 0.55),
        0 20px 6px rgba(25, 22, 18, 0.5),
        0 25px 8px rgba(20, 18, 15, 0.45),
        0 30px 10px rgba(15, 13, 10, 0.4),
        0 36px 14px rgba(12, 10, 8, 0.35),
        0 42px 18px rgba(8, 7, 5, 0.3),
        0 50px 25px rgba(5, 4, 3, 0.25),
        
        /* AMBIENT OCCLUSION - deep darkness */
        0 60px 50px rgba(0, 0, 0, 0.6),
        
        /* BOLD SIDE SHADOWS - strong 3D volume */
        -4px 0 8px rgba(0, 0, 0, 0.4),
        4px 0 8px rgba(0, 0, 0, 0.4);
    
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    
    /* Flex for vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    
    /* Text containment */
    overflow: hidden;
}

/* Text container - keeps text within brass plate */
.lesson-item a > * {
    position: relative;
    z-index: 1;
    /* Add horizontal padding to keep text away from edges */
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* BRASS TITLE PLATE - embossed/stamped into spine */
.lesson-item a::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    height: 75px;
    
    /* TEXTURED worn brass plate pressed into leather */
    background: 
        /* Fine brass scratches - horizontal wear marks */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(180, 140, 95, 0.15) 1px,
            transparent 2px,
            transparent 8px
        ),
        /* Diagonal brush marks */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(212, 165, 116, 0.08) 1px,
            transparent 2px,
            transparent 5px
        ),
        /* Tarnish spots */
        radial-gradient(ellipse at 30% 35%, rgba(180, 145, 110, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 65%, rgba(190, 150, 115, 0.15) 0%, transparent 35%),
        /* Brass patina gradient with texture */
        linear-gradient(180deg,
            rgba(212, 165, 116, 0.22) 0%,
            rgba(200, 155, 108, 0.15) 30%,
            rgba(190, 148, 102, 0.12) 50%,
            rgba(205, 160, 112, 0.18) 100%
        );
    
    border-radius: 2px;
    border: 1px solid rgba(180, 140, 95, 0.4);
    
    /* DEEP RECESS with texture */
    box-shadow: 
        /* Deep depression */
        inset 0 4px 10px rgba(0, 0, 0, 0.7),
        inset 0 7px 15px rgba(0, 0, 0, 0.5),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        /* Brass rim highlight */
        inset 0 -1px 0 rgba(240, 212, 168, 0.2),
        inset 1px 1px 0 rgba(220, 180, 130, 0.15),
        /* Outer glow */
        0 0 3px rgba(212, 165, 116, 0.15);
    
    z-index: 0;
}

/* WORN CORNERS - darker aged edges on each spine */
.lesson-item:nth-child(odd) a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: 
        radial-gradient(circle at 0% 0%, rgba(25, 22, 18, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 100% 0%, rgba(25, 22, 18, 0.25) 0%, transparent 20%),
        radial-gradient(circle at 0% 100%, rgba(25, 22, 18, 0.35) 0%, transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(25, 22, 18, 0.3) 0%, transparent 20%);
    pointer-events: none;
    z-index: 2;
}

/* SUBTLE COLOR VARIATION - each spine slightly different leather tone */
.lesson-item:nth-child(1) a {
    filter: brightness(1.05) saturate(1.1);
}
.lesson-item:nth-child(2) a {
    filter: brightness(0.97) saturate(0.95);
}
.lesson-item:nth-child(3) a {
    filter: brightness(1.02) saturate(1.05);
}
.lesson-item:nth-child(4) a {
    filter: brightness(0.95) saturate(0.9);
}
.lesson-item:nth-child(5) a {
    filter: brightness(1.03) saturate(1.08);
}

/* Fire glow on hover */
.lesson-item a:hover {
    /* Brighter leather */
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(58, 54, 48, 0.35) 0px,
            rgba(52, 48, 43, 0.25) 0.5px,
            transparent 1px,
            transparent 2px
        ),
        radial-gradient(ellipse at 30% 50%, rgba(65, 60, 54, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(62, 57, 51, 0.45) 0%, transparent 45%),
        linear-gradient(180deg, 
            rgba(58, 54, 48, 0.8) 0%,
            rgba(54, 50, 45, 0.9) 50%,
            rgba(50, 46, 41, 0.85) 100%
        );
    
    /* Glowing edges */
    border-top-color: rgba(240, 212, 168, 0.5);
    
    /* Enhanced shadow + golden glow */
    box-shadow: 
        inset 0 1px 0 rgba(240, 212, 168, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.08),
        inset 0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 -2px 8px rgba(0, 0, 0, 0.25),
        0 4px 0 rgba(35, 32, 28, 0.6),
        0 6px 2px rgba(30, 27, 23, 0.5),
        0 8px 4px rgba(25, 22, 18, 0.4),
        0 12px 8px rgba(20, 18, 15, 0.35),
        0 16px 12px rgba(15, 13, 10, 0.3),
        0 20px 30px rgba(0, 0, 0, 0.5),
        /* GOLDEN FIRE GLOW */
        0 0 20px rgba(212, 165, 116, 0.3),
        0 0 40px rgba(240, 212, 168, 0.15);
}

/* Brass plate glows on hover */
.lesson-item a:hover::before {
    background: linear-gradient(180deg,
        rgba(212, 165, 116, 0.25) 0%,
        rgba(212, 165, 116, 0.15) 50%,
        rgba(212, 165, 116, 0.2) 100%
    );
    border-color: rgba(240, 212, 168, 0.4);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 -1px 2px rgba(240, 212, 168, 0.2),
        0 0 8px rgba(212, 165, 116, 0.2);
}

/* Mobile tap state */
.lesson-item a:active {
    /* Pressed down - reduced shadow */
    box-shadow: 
        inset 0 1px 0 rgba(240, 212, 168, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2),
        0 2px 0 rgba(35, 32, 28, 0.7),
        0 4px 2px rgba(30, 27, 23, 0.6),
        0 6px 4px rgba(25, 22, 18, 0.5),
        0 8px 8px rgba(20, 18, 15, 0.4),
        0 0 25px rgba(240, 212, 168, 0.4);
    
    transform: translateY(2px);
}

.lesson-title {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem; /* Reduced from 1.1rem */
    font-weight: 600; /* Bold for spine readability */
    color: #e8e4dc;
    margin-bottom: 0.25rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    /* DEBOSSED/PRESSED effect - text stamped into leather */
    text-shadow: 
        /* Deep shadow below (pressed down) */
        0 2px 3px rgba(0, 0, 0, 0.7),
        0 3px 5px rgba(0, 0, 0, 0.5),
        /* Subtle highlight above (edge catch) */
        0 -1px 0 rgba(240, 212, 168, 0.2),
        /* Inner darkness (recessed) */
        inset 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    /* Allow wrapping - removed nowrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lesson-scripture {
    display: block;
    font-size: 0.8rem; /* Reduced from 0.85rem */
    color: #b8b4a8;
    font-style: italic;
    line-height: 1.3;
    /* Lighter pressed effect for secondary text */
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 -1px 0 rgba(240, 212, 168, 0.15);
    /* Truncate with ellipsis if too long */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Max 1 line */
    -webkit-box-orient: vertical;
    line-clamp: 1;
}
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.01em;
    /* Subtle glow */
    text-shadow: 0 0 8px rgba(168, 164, 155, 0.1);
}

.no-lessons {
    text-align: center;
    padding: 3rem 2rem;
    color: #7a766d;
    font-style: italic;
    font-size: 1.05rem;
}

/* ===================================
   LESSON PAGE
   =================================== */

/* ===================================
   STICKY BREADCRUMB NAVIGATION
   =================================== */

.breadcrumb-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, 
        rgba(15, 15, 15, 0.98) 0%,
        rgba(15, 15, 15, 0.95) 85%,
        rgba(15, 15, 15, 0) 100%
    );
    backdrop-filter: blur(8px);
    padding: 1rem 0 1.5rem 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.breadcrumb-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a8a49b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.breadcrumb a {
    color: #c9a47a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    text-shadow: 0 0 6px rgba(201, 164, 122, 0.2);
}

.breadcrumb a:hover {
    color: #f0d4a8;
    border-bottom-color: #c9a47a;
    text-shadow: 0 0 10px rgba(240, 212, 168, 0.4);
}

.breadcrumb .separator {
    opacity: 0.5;
    margin: 0 0.25rem;
}

.breadcrumb .current {
    color: #e0ddd5;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.8) 0%, rgba(30, 28, 25, 0.85) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    color: #c9a47a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(52, 48, 43, 0.9) 0%, rgba(40, 38, 35, 0.95) 100%);
    border-color: rgba(240, 212, 168, 0.5);
    color: #f0d4a8;
    transform: translateX(-3px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 165, 116, 0.2);
}

.back-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.back-text {
    line-height: 1;
}

/* Mobile: Hide button text, show only arrow */
@media (max-width: 600px) {
    .breadcrumb .current {
        max-width: 150px;
    }
    
    .back-text {
        display: none;
    }
    
    .back-button {
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        justify-content: center;
    }
    
    .back-arrow {
        margin: 0;
    }
}

.lesson-header {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #2d2a25; /* Softened divider */
    background: linear-gradient(to bottom, transparent 98%, #2d2a25 100%);
    margin-bottom: 3.5rem;
}

.scripture-reference {
    font-size: 1.05rem;
    color: #8a8577;
    font-style: italic;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Scripture reference styling - glow removed for cleaner experience */

.lesson-summary,
.song-tie-in,
.song-section {
    margin-bottom: 4.5rem;
}

/* Song attribution with inline logo */
.song-attribution {
    text-align: center;
    font-size: 1rem;
    color: #c9a47a;
    font-style: italic;
    margin: 0.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 5rem; /* Allow room for larger logo */
}

.inline-logo {
    height: 5rem !important; /* Force much larger size on desktop */
    max-height: none !important; /* Override any max-height constraints */
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(201, 164, 122, 0.3));
    cursor: pointer; /* Show it's clickable */
    transition: all 0.3s ease;
}

/* Easter egg hover effect */
a:has(.inline-logo):hover .inline-logo {
    filter: drop-shadow(0 0 15px rgba(240, 212, 168, 0.6));
    transform: scale(1.05);
}

/* All sections full brightness - no opacity reduction */
.lesson-summary,
.song-tie-in,
.song-lyrics-section,
.song-section {
    opacity: 1;
}

/* Leather panel treatment for lesson sections - JOURNAL FRONT COVER STYLE */
.lesson-summary,
.song-tie-in,
.song-lyrics-section {
    /* Rich DARK TEXTURED leather - matching home page journals */
    background: 
        /* Vertical grain - visible leather texture */
        repeating-linear-gradient(
            0deg,
            rgba(60, 52, 42, 0.8) 0px,
            rgba(50, 45, 38, 0.6) 1px,
            rgba(40, 35, 30, 0.5) 2px,
            transparent 3px,
            transparent 4px
        ),
        /* Horizontal cross-grain - basket weave effect */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(50, 42, 34, 0.5) 1px,
            rgba(42, 36, 28, 0.4) 2px,
            transparent 3px,
            transparent 5px
        ),
        /* Pebbled leather bumps */
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0px,
            rgba(55, 48, 38, 0.4) 2px,
            transparent 3px,
            transparent 6px
        ),
        /* Worn spots - use areas */
        radial-gradient(ellipse at 20% 30%, rgba(70, 60, 48, 0.8) 0%, rgba(55, 48, 40, 0.4) 35%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(65, 55, 45, 0.75) 0%, rgba(52, 45, 37, 0.35) 32%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(62, 52, 42, 0.7) 0%, rgba(50, 43, 35, 0.3) 30%, transparent 40%),
        /* Scuff marks */
        linear-gradient(
            95deg,
            transparent 28%,
            rgba(70, 62, 50, 0.6) 32%,
            rgba(65, 58, 48, 0.5) 35%,
            transparent 40%
        ),
        /* Lighting gradient - DARKER */
        linear-gradient(180deg, 
            rgba(55, 48, 40, 1) 0%,
            rgba(45, 40, 34, 1) 20%,
            rgba(38, 34, 29, 1) 40%,
            rgba(32, 29, 25, 1) 60%,
            rgba(28, 25, 21, 1) 80%,
            rgba(24, 21, 18, 1) 100%
        );
    
    /* Worn rounded corners */
    border-radius: 8px;
    
    /* Top edge - light catch like book cover */
    border-top: 3px solid rgba(240, 212, 168, 0.35);
    
    /* Bottom edge - contact shadow */
    border-bottom: 4px solid rgba(8, 6, 4, 0.9);
    
    /* Side edges */
    border-left: 1px solid rgba(25, 22, 18, 0.6);
    border-right: 1px solid rgba(25, 22, 18, 0.6);
    
    padding: 1.5rem 2rem 2.5rem 2rem;
    
    /* 3D depth - stacked book effect */
    box-shadow: 
        /* Top highlight */
        inset 0 3px 0 rgba(255, 250, 230, 0.15),
        inset 0 5px 8px rgba(255, 255, 255, 0.05),
        
        /* Inner volume */
        inset 0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 -4px 15px rgba(0, 0, 0, 0.5),
        inset 3px 0 10px rgba(0, 0, 0, 0.4),
        inset -3px 0 10px rgba(0, 0, 0, 0.4),
        
        /* Stacking shadows - book depth */
        0 4px 0 rgba(35, 32, 28, 0.7),
        0 8px 2px rgba(30, 27, 23, 0.6),
        0 12px 3px rgba(25, 22, 18, 0.5),
        0 16px 4px rgba(20, 17, 13, 0.45),
        0 20px 6px rgba(15, 12, 8, 0.4),
        
        /* Ambient shadow */
        0 30px 40px rgba(0, 0, 0, 0.5);
    
    position: relative;
}

/* Brass title plate on journal cover - now using h2 background for flexibility */
.lesson-summary::before,
.song-tie-in::before {
    display: none; /* Hide the pseudo-element, use h2 background instead */
}

/* Position h2 with brass plate background - flexible height */
.lesson-summary h2,
.song-tie-in h2 {
    position: relative;
    width: 80%;
    max-width: 380px;
    margin: 0 auto 1.5rem auto;
    padding: 0.6rem 1rem;
    display: block;
    text-align: center;
    z-index: 1;
    /* Dark engraved text on matte brass */
    color: #2a2015 !important;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    /* Brass plate background */
    background: 
        linear-gradient(180deg,
            rgba(195, 165, 120, 0.85) 0%,
            rgba(175, 145, 105, 0.8) 50%,
            rgba(160, 130, 95, 0.85) 100%
        );
    border: 1px solid rgba(100, 75, 50, 0.5);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Stitching effect around edges */
.lesson-summary::after,
.song-tie-in::after,
.song-lyrics-section::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(201, 164, 122, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

/* Contemplative pulsing candlelight on leather panels */
/* Brass corner tabs removed for cleaner look */

/* Section hover effects removed for performance */


/* Section headers for lesson content */
.lesson-summary h2,
.song-tie-in h2 {
    text-align: center;
}

.preview-text {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===================================
   SONG SECTION
   =================================== */

.song-section {
    margin-bottom: 3rem;
    
    /* Rich DARK TEXTURED leather - matching journal style */
    background: 
        /* Dark gradient at top - shadow under brass plate for logo */
        linear-gradient(180deg,
            rgba(10, 8, 6, 0.6) 0%,
            rgba(15, 12, 10, 0.4) 15%,
            transparent 30%
        ),
        /* Vertical grain */
        repeating-linear-gradient(
            0deg,
            rgba(60, 52, 42, 0.8) 0px,
            rgba(50, 45, 38, 0.6) 1px,
            rgba(40, 35, 30, 0.5) 2px,
            transparent 3px,
            transparent 4px
        ),
        /* Horizontal cross-grain */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(50, 42, 34, 0.5) 1px,
            rgba(42, 36, 28, 0.4) 2px,
            transparent 3px,
            transparent 5px
        ),
        /* Pebbled leather */
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0px,
            rgba(55, 48, 38, 0.4) 2px,
            transparent 3px,
            transparent 6px
        ),
        /* Worn spots */
        radial-gradient(ellipse at 25% 25%, rgba(70, 60, 48, 0.7) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 75%, rgba(65, 55, 45, 0.6) 0%, transparent 40%),
        /* Lighting gradient - DARKER */
        linear-gradient(180deg, 
            rgba(45, 38, 30, 1) 0%,
            rgba(38, 33, 27, 1) 20%,
            rgba(32, 28, 23, 1) 40%,
            rgba(28, 25, 21, 1) 60%,
            rgba(25, 22, 18, 1) 80%,
            rgba(22, 19, 16, 1) 100%
        );
    
    border-radius: 8px;
    padding: 1.5rem 2rem 2.5rem 2rem;
    
    /* Top edge - light catch */
    border-top: 3px solid rgba(240, 212, 168, 0.35);
    border-bottom: 4px solid rgba(8, 6, 4, 0.9);
    border-left: 1px solid rgba(25, 22, 18, 0.6);
    border-right: 1px solid rgba(25, 22, 18, 0.6);
    
    /* 3D depth */
    box-shadow: 
        inset 0 3px 0 rgba(255, 250, 230, 0.15),
        inset 0 5px 8px rgba(255, 255, 255, 0.05),
        inset 0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 -4px 15px rgba(0, 0, 0, 0.5),
        inset 3px 0 10px rgba(0, 0, 0, 0.4),
        inset -3px 0 10px rgba(0, 0, 0, 0.4),
        0 4px 0 rgba(35, 32, 28, 0.7),
        0 8px 2px rgba(30, 27, 23, 0.6),
        0 12px 3px rgba(25, 22, 18, 0.5),
        0 16px 4px rgba(20, 17, 13, 0.45),
        0 20px 6px rgba(15, 12, 8, 0.4),
        0 30px 40px rgba(0, 0, 0, 0.5);
    
    position: relative;
}

/* Brass title plate for song section - now using h2 background */
.song-section::before {
    display: none; /* Hide the pseudo-element, use h2 background instead */
}

/* Stitching for song section */
.song-section::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(201, 164, 122, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

/* Song title - brass plate background for flexible height */
.song-section h2 {
    position: relative;
    width: 85%;
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
    padding: 0.6rem 1rem;
    display: block;
    text-align: center;
    z-index: 1;
    /* Dark engraved text on matte brass */
    color: #2a2015 !important;
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: Georgia, serif;
    line-height: 1.3;
    text-transform: none;
    /* Brass plate background */
    background: 
        linear-gradient(180deg,
            rgba(195, 165, 120, 0.85) 0%,
            rgba(175, 145, 105, 0.8) 50%,
            rgba(160, 130, 95, 0.85) 100%
        );
    border: 1px solid rgba(100, 75, 50, 0.5);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Song attribution */
/* Audio player - match songs page */
.song-section .custom-audio-player {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Player controls container */
.song-section .player-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

/* Individual control buttons - match songs page */
.song-section .player-button {
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.9) 0%, rgba(30, 28, 25, 0.95) 100%);
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: #d4a574;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 165, 116, 0.1);
}

.song-section .player-button:hover {
    background: linear-gradient(135deg, rgba(52, 48, 43, 0.9) 0%, rgba(40, 38, 35, 0.95) 100%);
    box-shadow: 
        0 4px 12px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(212, 165, 116, 0.2);
    transform: scale(1.05);
}

.song-section .player-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Progress bar container */
.song-section .progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Time displays */
.song-section .time-display {
    font-size: 0.9rem;
    color: #a8a49b;
    font-family: 'Courier New', monospace;
    min-width: 45px;
}

/* Seek bar */
.song-section .seek-bar {
    flex: 1;
}

/* Suno link */
.song-section .suno-link {
    text-align: center;
    margin: 2rem 0 0 0;
    font-size: 0.95rem;
    color: #a8a49b;
}

.song-section .suno-link a {
    color: #d4a574;
    text-decoration: none;
    transition: all 0.3s ease;
}

.song-section .suno-link a:hover {
    color: #f0d4a8;
    text-shadow: 0 0 10px rgba(240, 212, 168, 0.3);
}

/* Reflective Question styling */
.reflective-question {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 164, 122, 0.3);
}

.reflective-label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c9a47a;
    margin-bottom: 0.75rem;
}

.reflective-text {
    font-style: italic;
    color: #d4cfc5;
    line-height: 1.8;
    padding-left: 1rem;
    border-left: 2px solid rgba(201, 164, 122, 0.4);
    margin: 0;
}

/* Section headers within accordion content */
.accordion-content .section-header {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #c9a47a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.accordion-content .section-header:first-child {
    margin-top: 0;
}

/* Bullet lists within accordion content */
.accordion-content .content-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem 0;
}

.accordion-content .content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.accordion-content .content-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c9a47a;
    font-weight: bold;
}

/* Numbered lists */
.accordion-content .content-list.numbered {
    counter-reset: list-counter;
}

.accordion-content .content-list.numbered li {
    counter-increment: list-counter;
}

.accordion-content .content-list.numbered li::before {
    content: counter(list-counter) ".";
    font-weight: normal;
}

/* Nested numbered lists (inside bullet points) */
.accordion-content .content-list .content-list.numbered.nested {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.accordion-content .content-list .content-list.numbered.nested li {
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Sub-items within list items */
.accordion-content .content-list .sub-item {
    display: block;
    padding-left: 1rem;
    margin-top: 0.25rem;
    color: #b8b4ab;
    font-size: 0.95em;
}

/* Lyrics accordion within song section */
.song-section .lyrics-accordion {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.song-section .lyrics-accordion details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.song-section .lyrics-accordion summary {
    color: #d4a574;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    font-size: 1rem;
}

.song-section .lyrics-accordion details[open] summary {
    margin-bottom: 0.75rem;
}

/* Ensure lyrics content maintains proper styling */
.song-section .lyrics-content {
    display: block;
}

.song-section .lyrics-text {
    /* Match songs page lyrics style */
    color: #e0ddd5;
    line-height: 1.7;
    font-family: Georgia, serif;
    white-space: pre-line;
    font-size: 0.95rem;
    text-align: left;
    font-style: normal;
    margin: 0;
    padding: 0;
}

/* ===================================
   SONG LYRICS SECTION
   =================================== */

.song-lyrics-section {
    margin-bottom: 4.5rem;
}

.song-lyrics-section h2 {
    text-align: center;
}

/* Song title in lyrics section */
.song-lyrics-section h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #c8c4bb;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: center;
}

/* Lyrics preview text - matches other preview sections */
.song-lyrics-section .preview-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #e0ddd5;
    font-style: italic;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1.5rem;
    max-width: 32rem;
    text-align: center;
    /* Preserve line breaks for lyrics preview */
    white-space: pre-line;
    /* Subtle glow for contemplative feel */
    text-shadow: 0 0 12px rgba(224, 221, 213, 0.08);
}

.lyrics-content {
    /* Center the lyrics container */
    display: flex;
    justify-content: center;
}

.lyrics-text {
    /* Poetic, centered formatting */
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e0ddd5;
    font-style: italic;
    max-width: 32rem; /* Narrower than regular content for poetic feel */
    
    /* Preserve line breaks from data */
    white-space: pre-line;
    
    /* Subtle glow for contemplative feel */
    text-shadow: 0 0 12px rgba(224, 221, 213, 0.08);
    
    /* Extra spacing for stanzas (double line breaks) */
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* ===================================
   SONG SECTION - TWO COLUMN LAYOUT
   (Matches songs.html design EXACTLY)
   =================================== */

.song-section {
    margin-top: 3rem;
}

.song-section h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: #e8e4dc;
    text-align: center;
    /* Johannine glow */
    text-shadow: 0 0 20px rgba(232, 228, 220, 0.15);
}

/* Song attribution with logo */
.song-attribution {
    text-align: center;
    margin-bottom: 2.5rem;
}

.song-attribution a {
    display: inline-block;
    transition: all 0.3s ease;
}

.song-attribution a:hover {
    transform: translateY(-2px);
}

.song-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(201, 164, 122, 0.3));
    transition: all 0.3s ease;
}

.song-attribution a:hover .song-logo {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(212, 165, 116, 0.5));
}

/* Two-column grid layout - image left, content right (stacks naturally) */
.song-content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Ensure grid children render properly */
.song-content-grid > * {
    min-width: 0; /* Prevent overflow issues */
}

/* Song image - left column */
.song-image {
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important; /* Prevent collapse if image doesn't load */
    border-radius: 6px;
    align-self: start;
    background: rgba(0, 0, 0, 0.3); /* Fallback background if image missing */
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    /* Subtle shadow on the image itself */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Default image gets full opacity */
.lesson-image-default {
    opacity: 1 !important;
}

/* Animated image container - subtle photo indent */
.lesson-image-container {
    position: relative;
    width: 100%;
    display: block;
    
    /* Very subtle recessed area */
    background: rgba(20, 18, 15, 0.4);
    
    padding: 5px;
    border-radius: 8px;
    
    /* Soft, thin inset shadow */
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.35),
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        /* Tiny highlight on bottom edge */
        0 1px 0 rgba(201, 164, 122, 0.1);
}

/* Default image - shown when no animation */
.lesson-image-default {
    transition: opacity 10s ease-in-out;
    display: block;
    position: relative;
    z-index: 1;
}

/* Animation layer images - stacked on top */
.lesson-image-layer {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 10s ease-in-out;
    pointer-events: none; /* Don't interfere with clicks */
    display: none; /* Hidden by default until animation starts */
    z-index: 20 !important; /* Stack ABOVE default image (which has z-index: 10) */
}

/* If image doesn't load, show a placeholder */
.song-image:not([src]),
.song-image[src=""] {
    display: block !important;
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.5) 0%, rgba(30, 28, 25, 0.5) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
}

/* Right column wrapper - contains player and lyrics */
.song-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Player and lyrics stack naturally in right column */

/* Simplified audio player - matches songs page */
/* ===================================
   CARD-STYLE AUDIO PLAYER
   Modern, prominent player for both pages
   =================================== */

.card-audio-player {
    background: linear-gradient(135deg, 
        rgba(42, 38, 33, 0.9) 0%, 
        rgba(30, 28, 25, 0.95) 100%
    );
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 165, 116, 0.15);
    transition: all 0.3s ease;
}

.card-audio-player:hover {
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 25px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 165, 116, 0.25);
    transform: translateY(-2px);
}

/* Fire glow when playing */
.card-audio-player.playing {
    border-color: rgba(240, 212, 168, 0.6);
    animation: cardPlayerGlow 3s ease-in-out infinite;
}

@keyframes cardPlayerGlow {
    0%, 100% {
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 6px 25px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(212, 165, 116, 0.3);
    }
    50% {
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 8px 30px rgba(0, 0, 0, 0.7),
            0 0 60px rgba(240, 212, 168, 0.5);
    }
}

/* Player layout grid */
.card-player-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: center;
}

/* Album art */
.card-album-art {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.3);
}

/* Controls column */
.card-controls-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Play button row */
.card-play-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-play-button {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.3) 0%, 
        rgba(180, 140, 95, 0.2) 100%
    );
    border: 2px solid rgba(212, 165, 116, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.card-play-button:hover {
    border-color: rgba(240, 212, 168, 0.8);
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.4) 0%, 
        rgba(180, 140, 95, 0.3) 100%
    );
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
    transform: scale(1.05);
}

.card-play-button:active {
    transform: scale(0.95);
}

.card-play-button svg {
    width: 28px;
    height: 28px;
    fill: #f0d4a8;
    filter: drop-shadow(0 0 4px rgba(240, 212, 168, 0.5));
}

/* Fire effect when playing */
.card-audio-player.playing .card-play-button {
    animation: playButtonFire 2s ease-in-out infinite;
}

@keyframes playButtonFire {
    0%, 100% {
        border-color: rgba(212, 165, 116, 0.5);
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    }
    50% {
        border-color: rgba(240, 212, 168, 0.9);
        box-shadow: 0 0 35px rgba(240, 212, 168, 0.6);
    }
}

/* Time and progress */
.card-time-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.card-time-display {
    font-size: 0.9rem;
    color: #c9a47a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
}

/* Seek bar row */
.card-seek-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-seek-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.card-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f0d4a8 0%, #d4a574 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(15, 15, 15, 0.8);
}

.card-seek-bar::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #fff5e6 0%, #f0d4a8 100%);
    box-shadow: 0 0 12px rgba(240, 212, 168, 0.6);
    transform: scale(1.2);
}

.card-seek-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f0d4a8 0%, #d4a574 100%);
    border: 2px solid rgba(15, 15, 15, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-seek-bar::-moz-range-thumb:hover {
    background: linear-gradient(135deg, #fff5e6 0%, #f0d4a8 100%);
    box-shadow: 0 0 12px rgba(240, 212, 168, 0.6);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .card-player-grid {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }
    
    .card-album-art {
        width: 100px;
        height: 100px;
    }
    
    .card-play-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .card-play-button svg {
        width: 24px;
        height: 24px;
    }
    
    .card-audio-player {
        padding: 1rem;
    }
}

/* Lyrics accordion - matches songs page */
.song-section .lyrics-accordion {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    border: none;
}

.song-section .lyrics-accordion summary {
    color: #d4a574;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    font-size: 1rem;
    list-style: none;
}

.song-section .lyrics-accordion summary::-webkit-details-marker {
    display: none;
}

.song-section .lyrics-accordion summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.song-section .lyrics-accordion[open] summary::before {
    transform: rotate(90deg);
}

.song-section .lyrics-accordion[open] summary {
    margin-bottom: 0.75rem;
}

/* CRITICAL: Override the global vellum accordion-content styles */
.song-section .lyrics-accordion .accordion-content,
.song-section .lyrics-accordion .accordion-content *,
.song-section .lyrics-accordion .accordion-content p,
.song-section .lyrics-accordion .accordion-content span,
.song-section .lyrics-accordion .accordion-content div {
    background: transparent !important;
    color: #e0ddd5 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

.song-section .lyrics-accordion .lyrics-text,
.song-section .lyrics-accordion .lyrics-text *,
.song-section .lyrics-accordion .lyrics-text p,
.song-section .lyrics-accordion .lyrics-text span,
.song-section .lyrics-accordion .lyrics-text div {
    color: #e0ddd5 !important;
    background: transparent !important;
    line-height: 1.7;
    font-family: Georgia, serif;
    white-space: pre-line;
    font-size: 0.95rem;
    text-align: left;
    font-style: normal;
    text-shadow: none;
    box-shadow: none !important;
    padding: 0 !important;
}

.song-section .lyrics-accordion .lyrics-text {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem !important;
    margin: 0;
}

/* Scrollbar for lyrics */
.song-section .lyrics-text::-webkit-scrollbar {
    width: 5px;
}

.song-section .lyrics-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.song-section .lyrics-text::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.4);
    border-radius: 3px;
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .song-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .song-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

   NAVIGATION
   =================================== */

/* ===================================
   STICKY BOTTOM NAVIGATION (Lesson Prev/Next)
   =================================== */

.lesson-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(0deg, 
        rgba(15, 15, 15, 0.98) 0%,
        rgba(15, 15, 15, 0.95) 85%,
        rgba(15, 15, 15, 0) 100%
    );
    backdrop-filter: blur(8px);
    padding: 1.5rem 0 1rem 0;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.8) 0%, rgba(30, 28, 25, 0.85) 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    color: #c9a47a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
    max-width: 45%;
}

.nav-button:hover {
    background: linear-gradient(135deg, rgba(52, 48, 43, 0.9) 0%, rgba(40, 38, 35, 0.95) 100%);
    border-color: rgba(240, 212, 168, 0.5);
    color: #f0d4a8;
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 165, 116, 0.2);
}

.prev-button:hover {
    transform: translateY(-2px) translateX(-3px);
}

.next-button:hover {
    transform: translateY(-2px) translateX(3px);
}

.nav-arrow {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.8;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-spacer {
    width: 45%;
}

/* ===================================
   LESSON NAV LINKS (Bottom Navigation)
   =================================== */

.nav-links {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.85) 0%, rgba(30, 28, 25, 0.9) 100%);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 8px;
    color: #c9a47a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 3px 10px rgba(0, 0, 0, 0.4);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(52, 48, 43, 0.9) 0%, rgba(40, 38, 35, 0.95) 100%);
    border-color: rgba(240, 212, 168, 0.5);
    color: #f0d4a8;
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(212, 165, 116, 0.25);
    text-shadow: 0 0 10px rgba(240, 212, 168, 0.3);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.prev-link:hover {
    transform: translateY(-2px) translateX(-3px);
}

.next-link:hover {
    transform: translateY(-2px) translateX(3px);
}

.nav-link .nav-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.prev-link:hover .nav-arrow {
    transform: translateX(-3px);
}

.next-link:hover .nav-arrow {
    transform: translateX(3px);
}

.nav-link .nav-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link-placeholder {
    width: 120px; /* Reserve space for balanced layout */
}

/* Mobile: Simplified nav buttons */
@media (max-width: 768px) {
    .nav-button {
        padding: 0.6rem 1rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    .nav-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-button {
        max-width: 48%;
    }
    
    .nav-title {
        font-size: 0.75rem;
    }
}

/* ===================================
   SPECIAL TEXT ELEMENTS
   =================================== */

/* Scripture quotes within text */
.scripture-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: #e0ddd5;
    padding-left: 2rem;
    border-left: 2px solid #3a3630;
    margin: 2.5rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

em, i {
    font-style: italic;
    color: #e0ddd5;
}

strong, b {
    font-weight: 600;
    color: #e8e4dc;
}

/* ===================================
   ERROR MESSAGE
   =================================== */

.error-message {
    text-align: center;
    padding: 5rem 2rem;
}

.error-message h1 {
    color: #c98a7a;
    margin-bottom: 1.5rem;
}

.error-message p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #c9a47a; /* Warm amber/gold */
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    border-radius: 12px; /* Much rounder: 2px → 12px for organic feel */
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border: none;
}

.button:hover {
    background-color: #e0c6a7; /* Brighter gold hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 164, 122, 0.25);
    border-bottom: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 17px;
    }

    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    /* Show line break on mobile */
    .mobile-break {
        display: block;
    }
    
    /* Smaller logo on mobile - proportional to title */
    .tenth-hour-logo {
        max-width: 200px;
    }
    
    .subtitle-text {
        font-size: 1.1rem;
        margin-bottom: -1rem;
    }

    h2 {
        font-size: 0.8rem;
        margin-top: 3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .emphasis-text,
    .preview-text {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    
    /* Lessons header with sort toggle on mobile */
    .lessons-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .lessons-section h2 {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .sort-toggle {
        margin: 0 auto;
        order: 2;
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    /* Larger tap targets for mobile - minimum 48x48px */
    .lesson-item a {
        padding: 1.5rem 1.25rem;
        min-height: 48px;
    }
    
    /* Expand brass plate on mobile to contain titles */
    .lesson-item a::before {
        left: 1rem !important; /* Reduced from 2.5rem */
        right: 1rem !important; /* Reduced from 2.5rem */
        height: 110px !important; /* Increased from 90px to fit 4 lines */
    }
    
    /* Reduce leather panel padding on mobile for full bleed reading */
    .lesson-summary,
    .song-tie-in {
        padding: 2.5rem 0.5rem !important; /* Minimal side padding when closed */
        transition: all 0.3s ease;
    }
    
    .song-section h2 {
        text-align: center;
    }
    
    .song-section .song-attribution {
        text-align: center;
    }
    
    .song-section .song-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* FULL EXPANSION: When accordion is open, expand entire journal panel edge-to-edge */
    .lesson-summary:has(.accordion[open]),
    .song-tie-in:has(.accordion:not(.lyrics-accordion)[open]),
    .song-section:has(.lyrics-accordion[open]) {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 2rem 1rem !important;
        border-radius: 0 !important; /* Square edges when expanded */
    }
    
    /* Close button styling */
    .accordion-close-btn {
        display: block;
        width: 100%;
        margin-top: 2rem;
        padding: 1rem;
        background: linear-gradient(180deg, #c9a47a 0%, #b89968 100%);
        color: #2a231d;
        border: none;
        border-radius: 6px;
        font-family: Georgia, serif;
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }
    
    .accordion-close-btn:active {
        transform: translateY(1px);
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    /* Reset stacking offset on mobile for easier tapping */
    .lesson-item,
    .lesson-item:nth-child(n) {
        margin-left: 0 !important;
    }
    
    /* MOBILE CLEANUP: Remove rotations and offsets for clean vertical stacking */
    .lesson-item:nth-child(1),
    .lesson-item:nth-child(2),
    .lesson-item:nth-child(3),
    .lesson-item:nth-child(4),
    .lesson-item:nth-child(5),
    .lesson-item:nth-child(n+6) {
        transform: none !important; /* Remove all rotations and offsets */
    }
    
    /* Tighter spacing between cards on mobile */
    .lesson-item {
        margin-bottom: 0.75rem;
    }
    
    /* Subtle pulse on mobile spine stitching */
    @keyframes mobilePulse {
        0%, 100% {
            border-left-color: rgba(212, 165, 116, 0.25);
        }
        50% {
            border-left-color: rgba(212, 165, 116, 0.5);
        }
    }
    
    .lesson-item a {
        animation: mobilePulse 3s ease-in-out infinite;
    }

    .lesson-title {
        font-size: 1.1rem;
    }

    /* Image balanced on mobile - reduced to match desktop proportion */
    .song-image {
        max-width: 85%; /* Increased from 65% for better visibility on mobile */
    }
    
    .custom-audio-player {
        padding: 0.5rem 0.75rem;
    }
    
    /* Larger tap targets for audio controls */
    .player-button {
        padding: 8px; /* Adds tap area around the icon */
        margin-right: 0.5rem;
    }
    
    .time-display {
        font-size: 0.8rem;
        width: 35px;
    }
    
    /* Make inline logo even larger on mobile */
    .inline-logo {
        height: 3rem; /* Larger on mobile for better visibility */
    }
    
    /* Make divider cross icons more visible on mobile */
    .divider-ornate::before {
        width: 50px; /* Larger on mobile */
        height: 50px; /* Larger on mobile */
        opacity: 1 !important; /* Force full visibility */
        z-index: 100 !important; /* Force above other content */
    }
    
    .divider-ornate::after {
        width: 60px; /* Larger brass seal on mobile */
        height: 75px; /* Larger brass seal on mobile */
        opacity: 1 !important; /* Force full visibility */
        z-index: 99 !important; /* Force above other content but below cross */
        /* Stronger glow for mobile visibility */
        box-shadow: 
            0 0 20px rgba(212, 165, 116, 0.4),
            0 0 35px rgba(240, 212, 168, 0.25),
            inset 0 2px 4px rgba(0, 0, 0, 0.6),
            inset 0 -1px 2px rgba(240, 212, 168, 0.3) !important;
    }

    /* Mobile navigation improvements */
    .lesson-navigation {
        padding: 0.75rem 0 0.5rem 0;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 10px;
    }
    
    /* Slim, compact nav buttons on mobile */
    .nav-link {
        padding: 0.5rem 1rem;
        min-height: 40px;
        flex: 1;
        justify-content: center;
        border-radius: 6px;
    }
    
    .nav-link .nav-label {
        font-size: 0.8rem;
    }
    
    .nav-link .nav-arrow {
        font-size: 0.9rem;
    }
    
    .nav-link-placeholder {
        display: none;
    }

    .accordion-content {
        /* Works within expanded journal panel */
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
        padding: 2rem 1rem 1.5rem 1rem !important;
        font-size: 1.05rem;
        line-height: 1.7;
        border-radius: 8px !important;
        /* MOBILE FIX: Ensure visibility */
        display: block !important;
        opacity: 1 !important;
        /* PURE BLACK text on off-white for mobile */
        color: #000000 !important;
        /* Pure off-white background - simpler for mobile */
        background: #f8f5ee !important;
        /* Subtle shadow for depth */
        box-shadow: 
            inset 0 0 60px rgba(0, 0, 0, 0.03),
            0 2px 6px rgba(0, 0, 0, 0.12) !important;
        min-height: 50px !important;
    }
    
    /* Home page accordions expand to full width when open */
    .about-section:has(.accordion[open]),
    .about-music-section:has(.accordion[open]) {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 1.5rem 1rem !important;
    }
    
    /* Force all mobile accordion text to pure black */
    .accordion-content *,
    .accordion-content p {
        color: #000000 !important;
    }
    
    /* Mobile-optimized lyrics display */
    .lyrics-text {
        font-size: 1rem;
        line-height: 1.8;
        padding: 1rem;
        max-width: 100%;
    }
    
    /* Lyrics preview mobile styling */
    .song-lyrics-section .preview-text {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    .song-lyrics-section h3 {
        font-size: 1.2rem;
    }
    
    /* Larger tap target for accordion summary */
    .accordion summary {
        padding: 1rem 0;
        min-height: 48px;
    }
    
    /* Mobile fire: Subtle pulse on lesson page sections */
    @keyframes sectionPulse {
        0%, 100% {
            border-left-color: transparent;
        }
        50% {
            border-left-color: rgba(212, 165, 116, 0.2);
        }
    }
    
    /* Subtle left border styling on mobile - animation removed for performance */
    .lesson-summary,
    .song-tie-in,
    .song-lyrics-section {
        border-left: 2px solid rgba(212, 165, 116, 0.2);
        padding-left: 1rem;
    }
    
    /* Enhanced glow on headings for mobile */
    .lesson-summary h2,
    .song-tie-in h2,
    .song-lyrics-section h3 {
        text-shadow: 0 0 15px rgba(212, 165, 116, 0.2);
    }
    
    /* Back to top button - adjusted for mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .back-to-top::before {
        font-size: 28px;
    }
    
    /* Mobile divider and cross icon positioning */
    .divider-ornate {
        margin: 2.5rem 0; /* Tighter spacing on mobile */
    }
    
    .divider-ornate::after,
    .divider-ornate::before {
        /* Ensure icons stay centered and visible on mobile */
        z-index: 10;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 0.75rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .emphasis-text,
    .preview-text {
        font-size: 1.05rem;
    }

    .about-preview {
        font-size: 1.3rem !important; /* Still prominent on mobile */
        padding: 0.75rem 1rem;
    }

    /* Image scales appropriately on very small screens */
    .song-image {
        max-width: 75%; /* Reduced from 85% for better balance */
    }
    
    .custom-audio-player {
        padding: 0.4rem 0.5rem;
    }
    
    .player-button {
        margin-right: 0.5rem;
        padding: 10px; /* Larger tap area on small screens */
    }
    
    .player-button svg {
        width: 32px;
        height: 32px;
    }

    .time-display {
        font-size: 0.75rem;
        width: 32px;
    }
    
    #current-time {
        margin-right: 0.5rem;
    }

    #duration {
        margin-left: 0.5rem;
    }
    
    /* Larger slider controls for easier touch */
    .seek-bar {
        height: 6px;
    }
    
    .seek-bar::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    .seek-bar::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    .accordion-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    /* Optimized lyrics for small screens */
    .lyrics-text {
        font-size: 0.95rem;
        line-height: 1.75;
        padding: 0.75rem;
    }
    
    /* Lyrics preview small screen styling */
    .song-lyrics-section .preview-text {
        font-size: 0.95rem;
        line-height: 1.65;
        padding: 0 0.75rem;
    }
    
    .song-lyrics-section h3 {
        font-size: 1.1rem;
    }
    
    /* Comfortable tap targets on small screens */
    .lesson-item a {
        padding: 1.75rem 1rem;
    }
    
    /* Even slimmer nav on small phones */
    .lesson-navigation {
        padding: 0.5rem 0 0.35rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        min-height: 36px;
    }
    
    .nav-link .nav-label {
        font-size: 0.75rem;
        letter-spacing: 0.06em;
    }
    
    .nav-link .nav-arrow {
        font-size: 0.85rem;
    }
    
    /* Mobile fire: Ornate dividers pulse with golden glow on small screens */
    @keyframes dividerGlow {
        0%, 100% {
            opacity: 0.7;
            filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.4));
        }
        50% {
            opacity: 1;
            filter: drop-shadow(0 0 15px rgba(212, 165, 116, 0.7));
        }
    }
    
    .divider-ornate::after {
        animation: dividerGlow 3s ease-in-out infinite;
    }
    
    /* Back to top button sizing for small screens */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Johannine eagle feather ornament divider */
.divider-ornate {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.5), transparent);
    margin: 2rem 0;
    position: relative;
}

/* When divider is inside an accordion (details element) */
details .divider-ornate {
    margin: 1.5rem 0;
}

/* Simple brass center accent */
.divider-ornate::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.6);
    box-shadow: 
        0 0 10px rgba(212, 165, 116, 0.3),
        inset 0 1px 1px rgba(240, 212, 168, 0.4);
}

/* Remove cross icon */
.divider-ornate::before {
    display: none;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(42, 38, 33, 0.9) 0%, rgba(30, 28, 25, 0.95) 100%);
    border: 1px solid #d4a574;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(52, 48, 43, 0.95) 0%, rgba(40, 38, 35, 1) 100%);
    border-color: #f0d4a8;
    /* Enhanced divine illumination */
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 165, 116, 0.4),
        0 0 35px rgba(240, 212, 168, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

/* Active state for mobile - immediate visual feedback */
.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
    background: linear-gradient(135deg, rgba(62, 58, 53, 1) 0%, rgba(50, 48, 45, 1) 100%);
    border-color: #f0d4a8;
    /* Brighter on tap */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(240, 212, 168, 0.5),
        0 0 45px rgba(240, 212, 168, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.back-to-top::before {
    content: '↑';
    color: #d4a574;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.4);
}

.back-to-top:hover::before {
    color: #f0d4a8;
    /* Stronger glow */
    text-shadow: 
        0 0 15px rgba(240, 212, 168, 0.7),
        0 0 25px rgba(240, 212, 168, 0.4);
}

/* ===================================
   SCROLL FADE-IN EFFECT (One-time)
   Sections illuminate as you scroll down
   =================================== */

/* Sections start hidden */
.awaiting-light {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

/* When scrolled into view, they fade in smoothly */
.illuminate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease-out,
                transform 1.2s ease-out;
}

/* ===================================
   THEATRICAL VINTAGE BRASS AUDIO PLAYERS
   =================================== */

/* Simple player - Lesson pages - Vintage brass equipment */
.simple-audio-player {
    background: 
        /* Brass plate texture */
        repeating-linear-gradient(
            90deg,
            rgba(42, 38, 33, 0.5) 0px,
            rgba(35, 32, 28, 0.4) 0.5px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(42, 38, 33, 0.3) 0px,
            rgba(35, 32, 28, 0.2) 0.5px,
            transparent 1px,
            transparent 2px
        ),
        /* Rich brass gradient */
        radial-gradient(ellipse at 30% 30%, rgba(180, 140, 95, 0.15) 0%, transparent 50%),
        linear-gradient(145deg, rgba(60, 52, 42, 0.9) 0%, rgba(35, 30, 25, 0.95) 100%);
    
    border: 3px solid;
    border-color: 
        rgba(140, 110, 75, 0.6) 
        rgba(100, 80, 55, 0.5) 
        rgba(80, 65, 45, 0.4) 
        rgba(120, 95, 65, 0.55);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    
    box-shadow: 
        /* Outer glow */
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.5),
        /* Brass highlights */
        inset 0 2px 4px rgba(212, 165, 116, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        /* Top highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    position: relative;
}

/* Ornate corner brackets */
.simple-audio-player::before,
.simple-audio-player::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 165, 116, 0.4);
}

.simple-audio-player::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}

.simple-audio-player::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

.simple-audio-player.playing {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(240, 212, 168, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        /* Golden glow */
        0 0 40px rgba(212, 165, 116, 0.3),
        inset 0 0 30px rgba(240, 212, 168, 0.1);
    
    animation: brassGlow 4s ease-in-out infinite;
}

@keyframes brassGlow {
    0%, 100% {
        border-color: 
            rgba(140, 110, 75, 0.6) 
            rgba(100, 80, 55, 0.5) 
            rgba(80, 65, 45, 0.4) 
            rgba(120, 95, 65, 0.55);
    }
    50% {
        border-color: 
            rgba(180, 145, 100, 0.75) 
            rgba(140, 110, 75, 0.65) 
            rgba(120, 95, 65, 0.55) 
            rgba(160, 130, 90, 0.7);
    }
}

/* Vintage brass play button */
.simple-player-btn {
    width: 64px;
    height: 64px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(240, 212, 168, 0.3) 0%, rgba(180, 140, 95, 0.2) 50%, rgba(120, 90, 60, 0.1) 100%),
        linear-gradient(145deg, rgba(212, 165, 116, 0.4) 0%, rgba(160, 125, 85, 0.3) 100%);
    
    border: 3px solid;
    border-color: 
        rgba(240, 212, 168, 0.6) 
        rgba(180, 140, 95, 0.5) 
        rgba(140, 110, 75, 0.4) 
        rgba(200, 160, 110, 0.55);
    
    border-radius: 50%;
    
    box-shadow: 
        /* Raised effect */
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 3px 8px rgba(0, 0, 0, 0.4),
        /* Inner brass glow */
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    
    position: relative;
    transition: all 0.3s ease;
}

.simple-player-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.simple-player-btn:hover {
    background: 
        radial-gradient(circle at 30% 30%, rgba(240, 212, 168, 0.4) 0%, rgba(180, 140, 95, 0.3) 50%, rgba(120, 90, 60, 0.2) 100%),
        linear-gradient(145deg, rgba(240, 212, 168, 0.5) 0%, rgba(180, 140, 95, 0.4) 100%);
    
    border-color: 
        rgba(255, 230, 190, 0.75) 
        rgba(220, 180, 130, 0.65) 
        rgba(180, 140, 95, 0.55) 
        rgba(240, 200, 140, 0.7);
    
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(240, 212, 168, 0.4);
    
    transform: translateY(-2px);
}

.simple-player-btn:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 -1px 2px rgba(255, 255, 255, 0.15);
}

.simple-player-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff5e6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Vintage brass slider track */
.simple-seek-bar {
    height: 4px;
    background: 
        linear-gradient(180deg, 
            rgba(40, 35, 28, 0.8) 0%,
            rgba(25, 22, 18, 0.9) 50%,
            rgba(40, 35, 28, 0.8) 100%
        );
    
    border: 2px solid;
    border-color: 
        rgba(100, 80, 55, 0.6)
        rgba(80, 65, 45, 0.5)
        rgba(60, 50, 35, 0.4)
        rgba(90, 70, 50, 0.55);
    
    border-radius: 2px;
    
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.05);
    
    -webkit-appearance: none;
    appearance: none;
}

/* Brass progress fill - IMPORTANT for showing progress */
.simple-seek-bar::-webkit-slider-runnable-track {
    height: 4px;
}

/* This creates the filled portion in brass */
.simple-seek-bar::-webkit-slider-container {
    background: 
        linear-gradient(90deg,
            rgba(240, 212, 168, 0.6) 0%,
            rgba(212, 165, 116, 0.5) 50%,
            rgba(180, 140, 95, 0.4) 100%
        );
}

.simple-seek-bar::-moz-range-track {
    height: 4px;
    background: 
        linear-gradient(180deg, 
            rgba(40, 35, 28, 0.8) 0%,
            rgba(25, 22, 18, 0.9) 50%,
            rgba(40, 35, 28, 0.8) 100%
        );
}

.simple-seek-bar::-moz-range-progress {
    background: 
        linear-gradient(90deg,
            rgba(240, 212, 168, 0.6) 0%,
            rgba(212, 165, 116, 0.5) 50%,
            rgba(180, 140, 95, 0.4) 100%
        );
    height: 4px;
    border-radius: 2px;
}

/* Progress wrapper - HORIZONTAL layout */
.simple-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

/* Speaker icon in upper right corner */
.audio-speaker-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.3) 0%, rgba(160, 125, 85, 0.2) 50%, rgba(120, 90, 60, 0.1) 100%),
        linear-gradient(145deg, rgba(180, 140, 95, 0.4) 0%, rgba(140, 110, 75, 0.3) 100%);
    border: 2px solid rgba(212, 165, 116, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.audio-speaker-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.audio-speaker-icon svg {
    width: 24px;
    height: 24px;
    fill: #f0d4a8;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 1;
}

/* Brass glow when playing */
.simple-audio-player.playing .audio-speaker-icon {
    border-color: rgba(240, 212, 168, 0.7);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(240, 212, 168, 0.5),
        0 0 40px rgba(212, 165, 116, 0.3);
    animation: speakerGlow 2s ease-in-out infinite;
}

@keyframes speakerGlow {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            inset 0 1px 2px rgba(255, 255, 255, 0.15),
            inset 0 -1px 2px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(240, 212, 168, 0.4),
            0 0 35px rgba(212, 165, 116, 0.25);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            inset 0 -1px 2px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(240, 212, 168, 0.6),
            0 0 50px rgba(212, 165, 116, 0.4);
    }
}

/* Brass slider thumb - polished knob */
.simple-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 240, 210, 0.9) 0%, rgba(212, 165, 116, 0.9) 45%, rgba(160, 125, 85, 0.85) 100%);
    
    border: 2px solid;
    border-color: 
        rgba(255, 240, 210, 0.8)
        rgba(200, 160, 110, 0.6)
        rgba(140, 110, 75, 0.5)
        rgba(220, 180, 130, 0.7);
    
    border-radius: 50%;
    cursor: pointer;
    
    box-shadow: 
        /* Raised knob */
        0 3px 8px rgba(0, 0, 0, 0.7),
        0 1px 4px rgba(0, 0, 0, 0.5),
        /* Polished brass highlight */
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        /* Inner ring detail */
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    
    transition: all 0.2s ease;
}

.simple-seek-bar::-webkit-slider-thumb:hover {
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 250, 220, 1) 0%, rgba(240, 212, 168, 1) 45%, rgba(200, 160, 110, 0.95) 100%);
    
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3),
        0 0 16px rgba(240, 212, 168, 0.6);
    
    transform: scale(1.15);
}

.simple-seek-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 240, 210, 0.9) 0%, rgba(212, 165, 116, 0.9) 45%, rgba(160, 125, 85, 0.85) 100%);
    
    border: 2px solid;
    border-color: 
        rgba(255, 240, 210, 0.8)
        rgba(200, 160, 110, 0.6)
        rgba(140, 110, 75, 0.5)
        rgba(220, 180, 130, 0.7);
    
    border-radius: 50%;
    cursor: pointer;
    
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.7),
        0 1px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    
    transition: all 0.2s ease;
}

.simple-seek-bar::-moz-range-thumb:hover {
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 250, 220, 1) 0%, rgba(240, 212, 168, 1) 45%, rgba(200, 160, 110, 0.95) 100%);
    
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3),
        0 0 16px rgba(240, 212, 168, 0.6);
}

/* Vintage brass time displays */
.simple-time-display {
    color: #f0d4a8;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(240, 212, 168, 0.4),
        0 1px 0 rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
}

/* Songs page player - Same theatrical brass treatment */
.audio-player-main {
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(42, 38, 33, 0.5) 0px,
            rgba(35, 32, 28, 0.4) 0.5px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(42, 38, 33, 0.3) 0px,
            rgba(35, 32, 28, 0.2) 0.5px,
            transparent 1px,
            transparent 2px
        ),
        radial-gradient(ellipse at 30% 30%, rgba(180, 140, 95, 0.15) 0%, transparent 50%),
        linear-gradient(145deg, rgba(60, 52, 42, 0.9) 0%, rgba(35, 30, 25, 0.95) 100%);
    
    border: 3px solid;
    border-color: 
        rgba(140, 110, 75, 0.6) 
        rgba(100, 80, 55, 0.5) 
        rgba(80, 65, 45, 0.4) 
        rgba(120, 95, 65, 0.55);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(212, 165, 116, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    position: relative;
}

.audio-player-main::before,
.audio-player-main::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(212, 165, 116, 0.4);
}

.audio-player-main::before {
    top: 14px;
    left: 14px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}

.audio-player-main::after {
    bottom: 14px;
    right: 14px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

.control-btn-main {
    background: 
        radial-gradient(circle at 30% 30%, rgba(240, 212, 168, 0.3) 0%, rgba(180, 140, 95, 0.2) 50%, rgba(120, 90, 60, 0.1) 100%),
        linear-gradient(145deg, rgba(212, 165, 116, 0.4) 0%, rgba(160, 125, 85, 0.3) 100%);
    
    border: 3px solid;
    border-color: 
        rgba(240, 212, 168, 0.6) 
        rgba(180, 140, 95, 0.5) 
        rgba(140, 110, 75, 0.4) 
        rgba(200, 160, 110, 0.55);
    
    border-radius: 50%;
    
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    
    position: relative;
}

.control-btn-main::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.control-btn-main:hover {
    background: 
        radial-gradient(circle at 30% 30%, rgba(240, 212, 168, 0.4) 0%, rgba(180, 140, 95, 0.3) 50%, rgba(120, 90, 60, 0.2) 100%),
        linear-gradient(145deg, rgba(240, 212, 168, 0.5) 0%, rgba(180, 140, 95, 0.4) 100%);
    
    border-color: 
        rgba(255, 230, 190, 0.75) 
        rgba(220, 180, 130, 0.65) 
        rgba(180, 140, 95, 0.55) 
        rgba(240, 200, 140, 0.7);
    
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(240, 212, 168, 0.4);
    
    transform: translateY(-2px);
}

.control-btn-main.play-btn {
    width: 76px;
    height: 76px;
    border-width: 4px;
}

.control-btn-main svg {
    fill: #fff5e6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.seek-bar {
    height: 4px;
    background: 
        linear-gradient(180deg, 
            rgba(40, 35, 28, 0.8) 0%,
            rgba(25, 22, 18, 0.9) 50%,
            rgba(40, 35, 28, 0.8) 100%
        );
    
    border: 2px solid;
    border-color: 
        rgba(100, 80, 55, 0.6)
        rgba(80, 65, 45, 0.5)
        rgba(60, 50, 35, 0.4)
        rgba(90, 70, 50, 0.55);
    
    border-radius: 2px;
    
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.05);
    
    -webkit-appearance: none;
    appearance: none;
}

/* Brass progress fill for songs player */
.seek-bar::-webkit-slider-runnable-track {
    height: 4px;
}

.seek-bar::-webkit-slider-container {
    background: 
        linear-gradient(90deg,
            rgba(240, 212, 168, 0.6) 0%,
            rgba(212, 165, 116, 0.5) 50%,
            rgba(180, 140, 95, 0.4) 100%
        );
}

.seek-bar::-moz-range-track {
    height: 4px;
    background: 
        linear-gradient(180deg, 
            rgba(40, 35, 28, 0.8) 0%,
            rgba(25, 22, 18, 0.9) 50%,
            rgba(40, 35, 28, 0.8) 100%
        );
}

.seek-bar::-moz-range-progress {
    background: 
        linear-gradient(90deg,
            rgba(240, 212, 168, 0.6) 0%,
            rgba(212, 165, 116, 0.5) 50%,
            rgba(180, 140, 95, 0.4) 100%
        );
    height: 4px;
    border-radius: 2px;
}

/* Speaker icon for songs page */
.audio-player-main .audio-speaker-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 240, 210, 0.9) 0%, rgba(212, 165, 116, 0.9) 45%, rgba(160, 125, 85, 0.85) 100%);
    
    border: 2px solid;
    border-color: 
        rgba(255, 240, 210, 0.8)
        rgba(200, 160, 110, 0.6)
        rgba(140, 110, 75, 0.5)
        rgba(220, 180, 130, 0.7);
    
    border-radius: 50%;
    cursor: pointer;
    
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.7),
        0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    
    transition: all 0.2s ease;
}

.seek-bar::-webkit-slider-thumb:hover {
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 250, 220, 1) 0%, rgba(240, 212, 168, 1) 45%, rgba(200, 160, 110, 0.95) 100%);
    
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(240, 212, 168, 0.6);
    
    transform: scale(1.15);
}

.seek-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 240, 210, 0.9) 0%, rgba(212, 165, 116, 0.9) 45%, rgba(160, 125, 85, 0.85) 100%);
    
    border: 2px solid;
    border-color: 
        rgba(255, 240, 210, 0.8)
        rgba(200, 160, 110, 0.6)
        rgba(140, 110, 75, 0.5)
        rgba(220, 180, 130, 0.7);
    
    border-radius: 50%;
    cursor: pointer;
    
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.7),
        0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
    
    transition: all 0.2s ease;
}

.seek-bar::-moz-range-thumb:hover {
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 250, 220, 1) 0%, rgba(240, 212, 168, 1) 45%, rgba(200, 160, 110, 0.95) 100%);
    
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(240, 212, 168, 0.6);
}

.time-display {
    color: #f0d4a8;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(240, 212, 168, 0.4),
        0 1px 0 rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
}

/* ===================================
   INFOGRAPHIC BUTTON & MODAL
   =================================== */

/* Infographic Button */
.infographic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, 
        rgba(60, 55, 48, 0.8) 0%, 
        rgba(45, 40, 35, 0.9) 100%
    );
    border: 1px solid rgba(201, 164, 122, 0.4);
    border-radius: 6px;
    color: #c9a47a;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.infographic-btn:hover {
    background: linear-gradient(180deg, 
        rgba(70, 65, 55, 0.9) 0%, 
        rgba(55, 50, 42, 0.95) 100%
    );
    border-color: rgba(201, 164, 122, 0.6);
    color: #d4b896;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(201, 164, 122, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.infographic-btn-icon {
    font-size: 1.2rem;
}

/* Infographic Modal */
.infographic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.infographic-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.infographic-modal-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.infographic-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(201, 164, 122, 0.2);
    border: 1px solid rgba(201, 164, 122, 0.4);
    border-radius: 50%;
    color: #c9a47a;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-modal-close:hover {
    background: rgba(201, 164, 122, 0.3);
    border-color: rgba(201, 164, 122, 0.6);
    color: #f5f0e6;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .infographic-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 10px;
    }
    
    .infographic-modal-image {
        max-height: 85vh;
        border-radius: 4px;
    }
    
    .infographic-modal-close {
        top: 10px;
        right: 10px;
        position: fixed;
        z-index: 10;
    }
}

/* ===================================
   MOBILE PLAYER FIXES (v50)
   =================================== */

/* Mobile fixes for lesson page player - prevent time overflow */
@media (max-width: 768px) {
    /* Ensure time displays have enough space */
    .simple-time-display {
        min-width: 42px;
        font-size: 0.9rem;
        text-align: center;
        flex-shrink: 0;
    }
    
    /* Reduce gap for tighter mobile layout */
    .simple-progress-wrapper {
        gap: 0.5rem;
    }
    
    /* Reduce padding on lesson player */
    .simple-audio-player {
        padding: 1.25rem 1rem;
    }
    
    /* Smaller corner brackets on mobile */
    .simple-audio-player::before,
    .simple-audio-player::after {
        width: 25px;
        height: 25px;
    }
    
    .simple-audio-player::before {
        top: 8px;
        left: 8px;
    }
    
    .simple-audio-player::after {
        bottom: 8px;
        right: 8px;
    }
    
    /* Hide speaker icon on SONGS page mobile (audio-player-main) */
    .audio-player-main .audio-speaker-icon {
        display: none;
    }
    
    /* SONGS PAGE player mobile fixes */
    .audio-player-main {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Smaller corner brackets on songs player mobile */
    .audio-player-main::before,
    .audio-player-main::after {
        width: 25px;
        height: 25px;
    }
    
    .audio-player-main::before {
        top: 8px;
        left: 8px;
    }
    
    .audio-player-main::after {
        bottom: 8px;
        right: 8px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .simple-time-display {
        min-width: 38px;
        font-size: 0.85rem;
    }
    
    .simple-progress-wrapper {
        gap: 0.35rem;
    }
    
    .simple-audio-player {
        padding: 1rem 0.75rem;
    }
    
    /* Even smaller play button on very small screens */
    .simple-player-btn {
        width: 52px;
        height: 52px;
    }
    
    /* Songs player extra small screens */
    .audio-player-main {
        padding: 1rem 0.75rem;
    }
}

/* ===================================
   END OF STYLESHEET
   =================================== */

