/* Shared blog post styles. Generated by scripts/consolidate-blog-assets.js from blog/ai-memory-is-broken. */
html {
            scroll-behavior: smooth;
        }

        :root {
            --bg-color: #f8f5f1;
            --card-bg: rgba(252, 250, 247, 0.95);
            --text-main: #2d3748;
            --text-muted: #596577;
            --accent-primary: #0284c7;
            --accent-secondary: #6366f1;
            --accent-vegas: #8b5cf6;
            --border-color: rgba(0, 0, 0, 0.08);
            --code-bg: #f4f4f5;
            --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-code: 'Fira Code', monospace;
        }

        [data-theme="dark"] {
            --bg-color: #0f1419;
            --card-bg: rgba(26, 34, 44, 0.95);
            --text-main: #e5e7eb;
            --text-muted: #9ca3af;
            --border-color: rgba(255, 255, 255, 0.06);
            --code-bg: #1a1f26;
        }

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

        body {
            font-family: var(--font-main);
            background: var(--bg-color);
            color: var(--text-main);
            line-height: 1.9;
            font-size: 17px;
            letter-spacing: 0.02em;
            word-spacing: 0.05em;
            overflow-x: hidden;
        }

        /* Background Animation Effect */
        .bg-glow {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background:
                radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
            filter: blur(40px);
        }

        .container {
            max-width: 760px;
            margin: 0 auto;
            padding: 40px 24px 80px;
        }

        nav {
            position: sticky;
            top: 0;
            background: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
            padding: 12px 24px;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(12px);
        }

        nav a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.2s;
        }

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

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            color: var(--text-muted);
            font-size: 1.1rem;
            transition: all 0.3s;
        }

        .theme-toggle:hover {
            color: var(--accent-primary);
            background: var(--card-bg);
        }

        .theme-toggle .fa-sun { display: none; }
        .theme-toggle .fa-moon { display: block; }
        [data-theme="dark"] .theme-toggle .fa-sun { display: block; }
        [data-theme="dark"] .theme-toggle .fa-moon { display: none; }

        /* Hero Header */
        .post-header {
            margin-bottom: 48px;
            padding-bottom: 32px;
            border-bottom: 1px solid var(--border-color);
        }

        .post-tag {
            display: inline-block;
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15));
            border: 1px solid rgba(14, 165, 233, 0.3);
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--accent-primary);
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 20px;
        }

        .post-meta time {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .reading-time {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        h1 {
            font-size: 2.75rem;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.15;
            background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            font-size: 1.3rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        h2 {
            font-size: 1.6rem;
            font-weight: 700;
            margin: 56px 0 20px;
            color: var(--text-main);
            position: relative;
            display: inline-block;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-vegas));
            border-radius: 2px;
        }

        h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 36px 0 12px;
            color: var(--accent-primary);
        }

        p {
            margin-bottom: 20px;
            color: var(--text-main);
        }

        ul, ol {
            margin: 16px 0 24px;
            padding-left: 24px;
        }

        li {
            margin-bottom: 10px;
        }

        strong {
            font-weight: 600;
            color: var(--accent-primary);
        }

        code {
            font-family: var(--font-code);
            background: var(--code-bg);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.88em;
            border: 1px solid var(--border-color);
        }

        /* VS Code Dark Theme Style */
        pre[class*="language-"] {
            background: #1e1e1e !important;
            border-radius: 12px;
            padding: 0;
            overflow: hidden;
            margin: 28px 0;
            border: 1px solid #333;
            position: relative;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        /* VS Code title bar */
        pre[class*="language-"]::before {
            content: '';
            display: block;
            background: #323233;
            padding: 12px 16px;
            border-bottom: 1px solid #333;
            position: relative;
        }

        /* Window control dots */
        pre[class*="language-"]::after {
            content: '';
            position: absolute;
            top: 14px;
            left: 16px;
            width: 12px;
            height: 12px;
            background: #ff5f56;
            border-radius: 50%;
            box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27ca40;
        }

        pre[class*="language-"] code {
            display: block;
            padding: 20px 24px;
            overflow-x: auto;
            font-size: 0.85rem;
            line-height: 1.7;
            background: transparent !important;
            border: none;
        }

        /* Override Prism theme for VS Code colors */
        .token.comment,
        .token.prolog,
        .token.doctype,
        .token.cdata {
            color: #6a9955 !important;
        }

        .token.punctuation {
            color: #d4d4d4 !important;
        }

        .token.property,
        .token.tag,
        .token.boolean,
        .token.number,
        .token.constant,
        .token.symbol {
            color: #b5cea8 !important;
        }

        .token.selector,
        .token.attr-name,
        .token.string,
        .token.char,
        .token.builtin {
            color: #ce9178 !important;
        }

        .token.operator,
        .token.entity,
        .token.url,
        .language-css .token.string,
        .style .token.string {
            color: #d4d4d4 !important;
        }

        .token.atrule,
        .token.attr-value,
        .token.keyword {
            color: #569cd6 !important;
        }

        .token.function,
        .token.class-name {
            color: #dcdcaa !important;
        }

        .token.regex,
        .token.important,
        .token.variable {
            color: #d16969 !important;
        }

        code[class*="language-"],
        pre[class*="language-"] {
            color: #d4d4d4 !important;
            text-shadow: none !important;
        }

        /* Inline code (not in pre) */
        :not(pre) > code {
            background: var(--code-bg);
            color: #e06c75;
        }

        [data-theme="dark"] :not(pre) > code {
            background: #2d2d2d;
            color: #e06c75;
        }

        /* Latency comparison table */
        .latency-table {
            margin: 28px 0;
            overflow-x: auto;
        }

        .latency-table table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .latency-table th,
        .latency-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .latency-table th {
            background: rgba(14, 165, 233, 0.1);
            font-weight: 600;
            color: var(--text-main);
        }

        .latency-table td:first-child {
            font-weight: 500;
        }

        .latency-table tr:last-child td {
            border-bottom: none;
        }

        .latency-table tr:nth-child(2) td:not(:first-child) {
            color: var(--text-muted);
        }

        .latency-table tr:last-child td:not(:first-child) {
            color: #10b981;
        }

        /* Callout Box */
        .callout {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.05));
            border-left: 4px solid var(--accent-primary);
            border-radius: 0 12px 12px 0;
            padding: 20px 24px;
            margin: 32px 0;
        }

        .callout p {
            margin: 0;
            font-style: italic;
        }

        /* Data table */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 24px 0;
            font-size: 0.9rem;
        }

        th, td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        th {
            background: var(--card-bg);
            font-weight: 600;
            color: var(--accent-primary);
        }

        tr:hover {
            background: var(--card-bg);
        }

        hr {
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-color), transparent);
            margin: 56px 0;
        }

        /* Author Section */
        .author-section {
            margin-top: 64px;
            padding: 32px;
            background: var(--card-bg);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .author-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent-primary);
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-main);
        }

        .author-title {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .author-links {
            display: flex;
            gap: 12px;
        }

        .author-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .author-links a:hover {
            color: var(--accent-primary);
            border-color: var(--accent-primary);
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            margin-top: 64px;
            padding-top: 32px;
            border-top: 1px solid var(--border-color);
            text-align: center;
        }

        .footer-social {
            display: flex;
            gap: 1.5rem;
            font-size: 1.5rem;
            justify-content: center;
            margin-bottom: 24px;
        }

        .footer-social a {
            color: var(--text-muted);
            transition: all 0.3s;
        }

        .footer-social a:hover {
            color: var(--accent-primary);
            transform: translateY(-3px);
        }        .related-posts {
            margin-top: 56px;
            padding: 28px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
        }

        .related-posts h2 {
            font-size: 1.4rem;
            margin-bottom: 20px;
        }

        .related-grid {
            display: grid;
            gap: 16px;
        }

        .related-card {
            display: block;
            padding: 18px 20px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            text-decoration: none;
            color: var(--text-main);
            transition: border-color 0.2s, transform 0.2s;
        }

        .related-card:hover {
            border-color: var(--accent-primary);
            transform: translateY(-2px);
        }

        .related-card strong {
            display: block;
            margin-bottom: 6px;
        }

        .related-card span {
            display: block;
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.55;
        }

        .copy-markdown-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 16px;
            padding: 10px 16px;
            border: 1px solid var(--border-color);
            border-radius: 999px;
            background: var(--card-bg);
            color: var(--text-main);
            font: inherit;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: border-color 0.2s, color 0.2s, transform 0.2s;
        }

        .copy-markdown-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
            transform: translateY(-1px);
        }

        .copy-markdown-btn.copied {
            border-color: #22c55e;
            color: #22c55e;
        }
        @media (max-width: 640px) {
            h1 { font-size: 2rem; }
            h2 { font-size: 1.4rem; }
            .container { padding: 24px 16px 60px; }
            body { font-size: 16px; }
            .author-section {
                flex-direction: column;
                text-align: center;
            }
            .author-links {
                justify-content: center;
            }
        }

        /* Reading Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
            background-size: 200% 100%;
            animation: shimmer 2s ease-in-out infinite;
            z-index: 9999;
            transition: width 0.1s ease-out;
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Scroll Animations */
        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

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

        /* Stagger animation delays for children */
        .fade-up:nth-child(1) { transition-delay: 0s; }
        .fade-up:nth-child(2) { transition-delay: 0.1s; }
        .fade-up:nth-child(3) { transition-delay: 0.2s; }
        .fade-up:nth-child(4) { transition-delay: 0.3s; }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 48px;
            height: 48px;
            background: var(--accent-primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
        }

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

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        /* Move back-to-top up when audio player is visible */
        body.audio-playing .back-to-top {
            bottom: 90px;
        }
        @media (max-width: 640px) {
            body.audio-playing .back-to-top {
                bottom: 120px;
            }
        }

        /* Sidebar TOC */
        /* Desktop Sidebar TOC - Left side */
.sidebar-toc {
    position: fixed;
    left: calc((100vw - 760px) / 2 - 220px);
    top: 140px;
    width: 180px;
    z-index: 50;
    display: none;
    /* Override generic nav styles */
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 1200px) {
    .sidebar-toc {
        display: block;
    }
}

.sidebar-toc-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 12px;
}

.sidebar-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc-list li {
    margin: 0;
}

.sidebar-toc-list a {
    display: block;
    padding: 6px 0 6px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.sidebar-toc-list a:hover {
    color: var(--text-main);
}

.sidebar-toc-list a.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

/* Mobile Dropdown TOC */
.mobile-toc {
    display: none;
    margin-bottom: 24px;
}

@media (max-width: 1199px) {
    .mobile-toc {
        display: block;
    }
}

.mobile-toc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-toc-toggle:hover {
    background: var(--border-color);
}

.mobile-toc-toggle svg {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.2s;
}

.mobile-toc.open .mobile-toc-toggle svg {
    transform: rotate(180deg);
}

.mobile-toc-dropdown {
    display: none;
    margin-top: 8px;
    padding: 8px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mobile-toc.open .mobile-toc-dropdown {
    display: block;
}

.mobile-toc-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s, background 0.15s;
}

.mobile-toc-dropdown a:hover {
    color: var(--text-main);
    background: var(--border-color);
}

.mobile-toc-dropdown a.active {
    color: var(--accent-primary);
}        /* Code Block Copy Button */
        pre {
            position: relative;
        }

        .copy-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 0.75rem;
            color: #a0a0a0;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s, background 0.2s;
        }

        pre:hover .copy-btn {
            opacity: 1;
        }

        .copy-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        .copy-btn.copied {
            background: #22c55e;
            color: #fff;
            border-color: #22c55e;
        }

        /* Link hover underlines */
        article a:not(.back-to-top):not(.author-links a):not([style]) {
            position: relative;
            text-decoration: none;
            color: var(--accent-primary);
        }

        article a:not(.back-to-top):not(.author-links a):not([style])::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-primary);
            transition: width 0.3s ease;
        }

        article a:not(.back-to-top):not(.author-links a):not([style]):hover::after {
            width: 100%;
        }

        /* Collapsible code blocks */
        pre.collapsible {
            max-height: 350px;
            overflow: hidden;
        }

        pre.collapsible::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(transparent, #1e1e1e);
            z-index: 1;
            pointer-events: none;
        }

        pre.expanded {
            max-height: none;
        }

        pre.expanded::before {
            display: none;
        }

        .expand-btn {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            z-index: 2;
            transition: background 0.2s;
        }

        .expand-btn:hover {
            background: #0284c7;
        }

        /* Audio Player - Fixed at bottom */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.audio-player.visible {
    transform: translateY(0);
}

/* Play/Pause button - compact circle */
.audio-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.audio-play-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.audio-play-btn svg {
    width: 20px;
    height: 20px;
}

.audio-play-btn .spinner {
    animation: spin 1s linear infinite;
}

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

/* Progress bar */
.audio-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    min-width: 100px;
}

.audio-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.1s;
    border-radius: 4px;
}

/* Time display */
.audio-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Close button */
.audio-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.audio-close:hover {
    color: var(--text-main);
}

.audio-close svg {
    width: 20px;
    height: 20px;
}

/* Inline listen button in header */
.listen-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    min-height: 44px;
}

.listen-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.listen-btn-inline svg {
    width: 18px;
    height: 18px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .audio-player {
        padding: 12px 16px;
        gap: 12px;
    }

    .audio-time {
        font-size: 0.75rem;
    }
}        /* TTS Highlight */
        .tts-highlight {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
            border-radius: 4px;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        /* Play All Button - matches listen-btn-inline style */
        .play-all-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            margin-top: 20px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border: none;
            border-radius: 24px;
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 44px;
        }

        .play-all-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
        }

        .play-all-btn svg {
            width: 18px;
            height: 18px;
        }

        .play-all-btn .pause-icon {
            display: none;
        }

        .play-all-btn.playing .play-icon {
            display: none;
        }

        .play-all-btn.playing .pause-icon {
            display: block;
        }

        .play-all-btn.playing {
            background: linear-gradient(135deg, var(--accent-vegas), var(--accent-secondary));
        }

        /* Section Play Button - gradient style */
        .section-header {
            margin-top: 56px;
            margin-bottom: 20px;
        }

        .section-header.intro-section {
            margin-top: 0;
            margin-bottom: 24px;
        }

        .section-header h2 {
            margin-top: 0;
            margin-bottom: 12px;
        }

        .section-play-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border: none;
            border-radius: 20px;
            color: white;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .section-play-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
        }

        .section-play-btn.playing {
            background: linear-gradient(135deg, var(--accent-vegas), var(--accent-secondary));
        }

        .section-play-btn svg {
            width: 14px;
            height: 14px;
        }

        .section-play-btn .pause-icon {
            display: none;
        }

        .section-play-btn.playing .play-icon {
            display: none;
        }

        .section-play-btn.playing .pause-icon {
            display: block;
        }

        /* Playlist Panel */
        .playlist-panel {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 500px;
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 16px;
            z-index: 999;
            display: none;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .playlist-panel.visible {
            display: block;
        }

        .playlist-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .playlist-title {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-main);
        }

        .playlist-close {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
        }

        .playlist-close:hover {
            color: var(--text-main);
        }

        .playlist-items {
            max-height: 300px;
            overflow-y: auto;
        }

        .playlist-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .playlist-item:hover {
            background: var(--border-color);
        }

        .playlist-item.active {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
        }

        .playlist-item.playing {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
        }

        .playlist-item-number {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            background: var(--border-color);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .playlist-item.playing .playlist-item-number {
            background: var(--accent-vegas);
            color: white;
        }

        .playlist-item-title {
            font-size: 0.85rem;
            color: var(--text-main);
            flex: 1;
        }

        .playlist-item-playing-icon {
            display: none;
            color: var(--accent-vegas);
        }

        .playlist-item.playing .playlist-item-playing-icon {
            display: block;
        }

        /* Fixed Audio Player */
        .audio-player {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border-top: 1px solid var(--border-color);
            padding: 12px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .audio-player.visible {
            transform: translateY(0);
        }

        .audio-play-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .audio-play-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
        }

        .audio-play-btn svg {
            width: 20px;
            height: 20px;
        }

        .audio-info {
            flex: 1;
            min-width: 0;
        }

        .audio-section-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .audio-progress-bar {
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
            cursor: pointer;
            margin-top: 6px;
        }

        .audio-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-vegas));
            width: 0%;
            transition: width 0.1s;
            border-radius: 3px;
        }

        .audio-time {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-family: var(--font-code);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .audio-playlist-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            flex-shrink: 0;
        }

        .audio-playlist-btn:hover {
            color: var(--accent-primary);
        }

        .audio-playlist-btn svg {
            width: 20px;
            height: 20px;
        }

        .audio-close {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            flex-shrink: 0;
        }

        .audio-close:hover {
            color: var(--text-main);
        }

        .audio-close svg {
            width: 20px;
            height: 20px;
        }

        /* Mobile adjustments */
        @media (max-width: 640px) {
            .audio-player {
                padding: 12px 16px;
                gap: 12px;
            }
            .audio-time {
                display: none;
            }
            .playlist-panel {
                bottom: 70px;
                width: 95%;
            }
        }

        /* Move back-to-top up when audio player is visible */
        body.audio-playing .back-to-top {
            bottom: 90px;
        }
