:root {
    /* Light Theme (Paper/Warm) */
    --bg-primary: #fdfbf7;
    --bg-primary-rgb: 253, 251, 247;
    --bg-secondary: #f4efe6;
    --text-primary: #2c2420;
    --text-secondary: #5d5550;
    --accent-color: #d4a373;
    /* Soft Gold/Bronze */
    --accent-hover: #b08d55;
    --border-color: #e6e1d6;
    --nav-bg: rgba(253, 251, 247, 0.95);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Cormorant Garamond', serif;
    /* Using serif for body for book feel */
    --font-ui: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Theme (Deep/Elegant) */
    --bg-primary: #1a1614;
    --bg-primary-rgb: 26, 22, 20;
    --bg-secondary: #241e1b;
    --text-primary: #e8e4e1;
    --text-secondary: #a8a098;
    --accent-color: #c5a880;
    --accent-hover: #e0c39a;
    --border-color: #38302c;
    --nav-bg: rgba(26, 22, 20, 0.95);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Slightly larger base font for reading */
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
}

/* Scroll Progress */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
    background: transparent;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(5%, env(safe-area-inset-right)) 1rem max(5%, env(safe-area-inset-left));
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-medium);
}

nav.hidden {
    transform: translateY(-100%);
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
    padding: 0.5rem;
}

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

/* Theme Toggle */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

#theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Nav Right Group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
#hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transform: scale(1.05);
    /* Slight zoom for parallax effect setup */
    transition: transform var(--transition-slow);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(var(--bg-primary-rgb), 0) 0%,
            var(--bg-primary) 100%);
    /* In dark mode, we might want a darker overlay */
}

[data-theme="dark"] .hero-image {
    opacity: 0.4;
}

.hero-content {
    z-index: 1;
    width: 650px;
    height: 650px;
    max-width: 90vw;
    max-height: 90vw;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(253, 251, 247, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

[data-theme="dark"] .hero-content {
    background: rgba(26, 22, 20, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.author {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-ui);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-color);
}

/* Main Content */
main {
    max-width: 900px;
    /* Optimal reading width */
    margin: 0 auto;
    padding: var(--spacing-lg) 2rem;
}

article.chapter {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.chapter-number {
    display: block;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.chapter-content {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.chapter-content p {
    margin-bottom: 2rem;
    text-indent: 2rem;
    /* Classic book styling */
    text-align: justify;
}

.chapter-content p:first-of-type {
    text-indent: 0;
}

.chapter-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem 0;
    text-align: center;
}

.chapter-content p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

/* Introduction Specifics */
#intro .chapter-content p:first-of-type::first-letter {
    font-size: 1em;
    /* Reset cap for intro if preferred, or keep consistent */
    float: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 1rem;
    font-style: italic;
    font-family: var(--font-body);
    opacity: 0.7;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    nav {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .title {
        font-size: 2.5rem;
    }

    .chapter-content p {
        text-align: left;
        text-indent: 0;
    }

    .chapter-content p+p {
        text-indent: 0;
        margin-top: 1.5rem;
    }

    main {
        padding: var(--spacing-md) 1.5rem;
    }

    .music-player-card {
        padding: 2rem 1.5rem;
    }

    .album-art-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* Music Player Section */
.music-player-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 4rem auto;
    position: relative;
    /* Glassmorphism for player too? */
    background: rgba(var(--bg-primary-rgb), 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.album-art-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 8px solid var(--bg-secondary);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotateAlbum 20s linear infinite;
    animation-play-state: paused;
}

.music-player-card.playing .album-art {
    animation-play-state: running;
}

@keyframes rotateAlbum {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.controls-main {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 2px;
    /* Visual center adjustment for play icon */
}

.play-btn svg.pause-icon {
    margin-left: 0;
}

.hidden {
    display: none;
}

.progress-container-audio {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.progress-bar-wrapper {
    flex-grow: 1;
    position: relative;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    cursor: pointer;
}

.seek-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.volume-slider {
    flex-grow: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    max-width: 120px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

.player-actions {
    display: flex;
    justify-content: center;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.download-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* ================================================
   MOBILE UX POLISH - Sticky CTA, Auto-Fill, Forms
   ================================================ */

/* STICKY CTA - Mobile Only */
#sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-color);
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUpIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] #sticky-cta {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

#sticky-cta.visible {
    display: flex;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#sticky-cta a {
    flex-grow: 1;
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sticky-cta a:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

#sticky-cta-dismiss {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#sticky-cta-dismiss:hover {
    color: var(--accent-color);
}

/* Hide sticky CTA on desktop */
@media (min-width: 769px) {
    #sticky-cta {
        display: none !important;
    }
}

/* FORM VALIDATION STYLES */
input[type="email"],
input[type="tel"],
input[type="text"],
textarea {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="email"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.1);
}

/* Valid Field Styling */
input.valid,
textarea.valid {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

input.valid:focus,
textarea.valid:focus {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Invalid Field Styling */
input.invalid,
textarea.invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

input.invalid:focus,
textarea.invalid:focus {
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

/* Error Message */
.error-message {
    font-size: 0.85rem;
    color: #f44336;
    margin-top: 0.25rem;
    display: block;
    font-family: var(--font-ui);
}

/* Success Checkmark */
.success-checkmark {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4caf50;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Form Field Wrapper */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 2.5rem; /* Space for checkmark */
}

.form-field input.valid,
.form-field textarea.valid {
    padding-right: 2.5rem;
}

/* Form Submit Button */
button[type="submit"] {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Lead Magnet Form Mobile */
#leadMagnetForm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#leadMagnetForm input {
    min-height: 44px;
}

#leadMagnetForm button {
    min-height: 44px;
}

@media (max-width: 480px) {
    #leadMagnetForm {
        flex-direction: column;
    }

    #leadMagnetForm input {
        width: 100%;
    }

    #leadMagnetForm button {
        width: 100%;
    }
}

/* MOBILE NAVIGATION TOUCH TARGETS */
.menu-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: 8px; /* Ensure 48px total */
}

nav a,
nav button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    /* General form sizing */
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    textarea {
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 44px;
    }

    /* Lead magnet form stack */
    #leadMagnetForm {
        flex-direction: column;
    }

    #leadMagnetForm > div {
        flex-direction: column;
    }

    #leadMagnetForm input {
        width: 100%;
        order: 1;
    }

    #leadMagnetForm button {
        width: 100%;
        order: 2;
    }

    /* Button minimum height */
    button,
    a.cta-button,
    a[role="button"] {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sticky CTA visible on mobile */
    #sticky-cta {
        bottom: 0;
    }
}

@media (max-width: 480px) {
    /* Extra small viewport adjustments */
    html {
        font-size: 15px;
    }

    input[type="email"],
    input[type="tel"],
    input[type="text"],
    textarea {
        font-size: 16px;
        min-height: 44px;
    }

    #sticky-cta {
        padding: 0.75rem;
    }

    #sticky-cta-content {
        gap: 0.5rem;
    }

    #sticky-cta a {
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

@media (max-width: 375px) {
    /* iPhone SE / small phones */
    html {
        font-size: 14px;
    }

    #sticky-cta {
        padding: 0.5rem;
    }

    #sticky-cta a {
        font-size: 0.75rem;
        min-height: 44px;
    }

    input[type="email"],
    input[type="tel"],
    input[type="text"] {
        font-size: 16px;
        min-height: 44px;
    }
}

@media (max-width: 320px) {
    /* Extra small devices (360px and below) */
    html {
        font-size: 13px;
    }

    #sticky-cta {
        padding: 0.5rem;
    }

    input[type="email"],
    input[type="tel"],
    input[type="text"] {
        font-size: 16px;
        min-height: 44px;
    }

    button {
        min-height: 44px;
    }
}

/* Prevent page scroll while dragging range sliders on touch */
input[type="range"] { touch-action: none; }

/* FOCUS VISIBLE FOR KEYBOARD NAV */
input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* PREVENT iOS ZOOM ON INPUT FOCUS */
@media (max-width: 768px) {
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    input[type="number"],
    input[type="password"],
    textarea {
        font-size: 16px !important;
    }
}

/* ===== VIDEO LAZY-LOADING STYLES ===== */

/* Hero Video Container */
.hero-video-container {
    overflow: hidden !important;
}

.hero-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Responsive Video Container */
.video-responsive-sm,
.video-responsive-md,
.video-responsive-lg {
    margin: 2rem auto;
}

.video-responsive-sm iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.video-responsive-md iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.video-responsive-lg iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Video Container Responsive */
.video-container-responsive {
    position: relative;
    width: 100%;
    margin: 2rem auto;
}

.video-container-responsive picture img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.video-container-responsive iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

/* Video with Transcript */
.video-with-transcript {
    margin: 3rem auto;
    max-width: 800px;
}

.video-with-transcript .video-container {
    margin-bottom: 2rem;
}

.video-with-transcript .transcript-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.transcript-download {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color, #d4af37);
    color: #000 !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.transcript-download:hover {
    background: #c19b1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

/* Mobile: Hide video on small screens */
@media (max-width: 768px) {
    .hero-video-container {
        display: none;
    }

    .video-container-responsive picture {
        display: block;
    }

    .video-container-responsive .video-container-desktop {
        display: none !important;
    }
}

/* Desktop: Show video, hide image */
@media (min-width: 769px) {
    .hero-video-container {
        display: block;
    }

    .video-container-responsive picture {
        display: none;
    }

    .video-container-responsive .video-container-desktop {
        display: block !important;
    }
}

/* Mobile Hero Fallback Image */
.hero-mobile-fallback { display: none; }
@media (max-width: 768px) {
    .hero-mobile-fallback {
        display: block;
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    }
    .hero-mobile-fallback img { width: 100%; height: 100%; object-fit: cover; }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-spinner {
    animation: spin 1s linear infinite;
}

/* ================================================
   LYRICS DISPLAY - Synchronized with Audio
   ================================================ */

#lyricsContainer {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.05) 0%, rgba(212, 163, 115, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

[data-theme="dark"] #lyricsContainer {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.08) 0%, rgba(197, 168, 128, 0.03) 100%);
}

.lyrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lyrics-line {
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s var(--transition-medium);
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.6;
}

.lyrics-line:hover {
    background: rgba(212, 163, 115, 0.08);
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .lyrics-line:hover {
    background: rgba(197, 168, 128, 0.12);
}

/* Lyric line states */
.lyrics-line.lyrics-past {
    color: var(--text-secondary);
    opacity: 0.6;
}

.lyrics-line.lyrics-current {
    color: var(--accent-color);
    background: rgba(212, 163, 115, 0.15);
    border-left-color: var(--accent-color);
    font-weight: 600;
    font-size: 1.05em;
    padding: 1rem 1.25rem;
}

[data-theme="dark"] .lyrics-line.lyrics-current {
    background: rgba(197, 168, 128, 0.2);
}

.lyrics-line.lyrics-future {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Lyric line types (styling by section) */
.lyrics-line.lyrics-type-intro {
    font-style: italic;
    color: var(--text-secondary);
}

.lyrics-line.lyrics-type-verse {
    color: var(--text-primary);
}

.lyrics-line.lyrics-type-chorus {
    font-weight: 500;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
}

.lyrics-line.lyrics-type-bridge {
    color: var(--accent-color);
    opacity: 0.9;
}

.lyrics-line.lyrics-type-outro {
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Empty lines for spacing */
.lyrics-line.lyrics-empty {
    padding: 0.5rem 1rem;
    cursor: default;
    border: none;
}

.lyrics-line.lyrics-empty:hover {
    background: transparent;
    border-left: none;
}

.lyrics-text {
    display: block;
    word-break: break-word;
}

/* Responsive lyrics container */
@media (max-width: 768px) {
    #lyricsContainer {
        max-height: 300px;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .lyrics-line {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }

    .lyrics-line.lyrics-current {
        padding: 0.8rem 1rem;
        font-size: 1.02em;
    }

    .lyrics-line.lyrics-type-chorus {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    #lyricsContainer {
        max-height: 250px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .lyrics-line {
        padding: 0.5rem 0.5rem;
        font-size: 0.95em;
    }

    .lyrics-line.lyrics-current {
        padding: 0.7rem 0.75rem;
        font-size: 1em;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #lyricsContainer {
        scroll-behavior: auto;
    }

    .lyrics-line {
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    .lyrics-line.lyrics-current {
        transition: color 0.2s ease, opacity 0.2s ease;
    }
}

/* Navigation: Active state highlighting */
.nav-link.active {
    color: var(--accent-color, #d4af37);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: all 0.2s ease;
}

.nav-link:not(.active) {
    transition: all 0.2s ease;
}

.nav-link:not(.active):hover {
    opacity: 0.8;
}

/* Chapter TOC: Sticky scrollspy navigation (homepage only) */
.chapter-toc {
    position: sticky;
    top: 60px;
    z-index: 900;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 5%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.chapter-toc::-webkit-scrollbar {
    height: 4px;
}

.chapter-toc::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chapter-toc::-webkit-scrollbar-thumb {
    background: var(--accent-color, #d4af37);
    border-radius: 2px;
}

.toc-link {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    color: var(--text-secondary);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.toc-link:hover {
    color: var(--accent-color, #d4af37);
    border-color: var(--accent-color, #d4af37);
}

.toc-link.active {
    color: var(--accent-color, #d4af37);
    border-color: var(--accent-color, #d4af37);
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
}

/* Mobile: Chapter TOC responsive */
@media (max-width: 768px) {
    .chapter-toc {
        padding: 0.5rem 3%;
        gap: 0.25rem;
    }

    .toc-link {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}