        /* Figure Page Specific Styles */
        :root {
            --gold-primary: #FFD700;
            --gold-glow: rgba(255, 215, 0, 0.4);
            --gold-glow-strong: rgba(255, 215, 0, 0.5);
            --gold-glow-weak: rgba(255, 215, 0, 0.2);
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-bg-strong: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-border-strong: rgba(255, 255, 255, 0.2);
            --shadow-primary: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        }

        body {
            background-color: #050508;
            background-image:
                radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.08), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(66, 133, 244, 0.06), transparent 40%),
                radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 50%),
                radial-gradient(circle at top center, #1b1c2e 0%, #050508 100%);
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #fff;
            min-height: 100vh;
        }

        .figure-content {
            max-width: 1200px;
            margin: 0 auto 60px auto;
            /* Added 60px bottom margin to clear the footer */
            padding: 40px 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: var(--shadow-primary);
        }

        .figure-content h1 {
            font-family: 'Lobster', cursive;
            font-size: 3em;
            color: var(--gold-primary);
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .figure-image-container {
            width: 300px;
            height: 300px;
            margin: 0 auto 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--glass-bg-strong);
            backdrop-filter: blur(10px);
            border: 3px solid var(--gold-glow-strong);
            border-radius: 20px;
            padding: 10px;
            box-shadow: var(--shadow-primary);
            transition: all 0.3s ease;
        }

        .figure-image-container:hover {
            transform: scale(1.05);
            border-color: rgba(255, 215, 0, 0.8);
            box-shadow: 0 0 30px var(--gold-glow);
        }

        .figure-image {
            max-width: 280px;
            max-height: 280px;
            object-fit: contain;
            border-radius: 15px;
            filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
        }

        .figure-content p {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 20px;
            line-height: 1.8;
            margin: 20px 0;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
        }

        .reference-button {
            background: var(--gold-glow-weak);
            backdrop-filter: blur(10px);
            border: 2px solid var(--gold-primary);
            border-radius: 25px;
            padding: 12px 25px;
            margin: 20px auto;
            width: fit-content;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--gold-primary);
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .reference-button:hover {
            background: rgba(255, 215, 0, 0.4);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            transform: translateY(-2px);
        }

        .reference-wrapper {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
            opacity: 0;
            margin: 0;
            visibility: hidden;
        }

        .reference-wrapper.show {
            grid-template-rows: 1fr;
            opacity: 1;
            margin: 20px 0;
            visibility: visible;
        }

        .reference-wrapper .reference-content {
            overflow: hidden;
            display: block;
            margin: 0;
            padding: 0;
            border: none;
            background: transparent;
            box-shadow: none;
            min-height: 0;
        }

        .reference-inner {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
        }

        .vote-filter {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin: 0 0 20px;
            flex-wrap: wrap;
        }

        .vote-filter button {
            padding: 10px 25px;
            border-radius: 20px;
            border: 2px solid rgba(255, 215, 0, 0.5);
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            color: #FFD700;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .vote-filter button:hover {
            background: rgba(255, 215, 0, 0.2);
            border-color: #FFD700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
        }

        .vote-buttons {
            display: flex;
            gap: 30px;
            justify-content: center;
            margin: 0 0 30px;
        }

        .vote-buttons button {
            padding: 20px 40px;
            border-radius: 20px;
            border: 3px solid;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            color: #fff;
            font-size: 1.2em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 150px;
        }

        .vote-buttons button#like {
            border-color: rgba(0, 255, 0, 0.5);
        }

        .vote-buttons button#like:hover {
            background: rgba(0, 255, 0, 0.2);
            border-color: rgba(0, 255, 0, 0.8);
            box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
            transform: translateY(-5px) scale(1.05);
        }

        .vote-buttons button#dislike {
            border-color: rgba(255, 0, 0, 0.5);
        }

        .vote-buttons button#dislike:hover {
            background: rgba(255, 0, 0, 0.2);
            border-color: rgba(255, 0, 0, 0.8);
            box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
            transform: translateY(-5px) scale(1.05);
        }

        /* Optimistic UI State */
        .vote-buttons button.optimistic-vote {
            opacity: 0.8;
            transform: scale(0.98);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) inset;
            pointer-events: none;
            transition: all 0.1s ease;
        }

        /* Active vote highlight */
        .vote-buttons button#like.user-voted {
            background: rgba(0, 200, 80, 0.25);
            border-color: rgba(0, 255, 100, 0.9);
            box-shadow: 0 0 20px rgba(0, 255, 100, 0.4);
        }

        .vote-buttons button#dislike.user-voted {
            background: rgba(220, 50, 50, 0.25);
            border-color: rgba(255, 80, 80, 0.9);
            box-shadow: 0 0 20px rgba(255, 80, 80, 0.4);
        }

        .comment-section {
            margin-top: 0;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
        }

        .comment-form textarea {
            width: 100%;
            padding: 15px;
            border-radius: 15px;
            border: 2px solid rgba(255, 215, 0, 0.3);
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            color: #fff;
            font-size: 1em;
            resize: vertical;
            min-height: 100px;
            box-sizing: border-box;
        }

        .comment-form textarea:focus {
            outline: none;
            border-color: #FFD700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        }

        .comment-form button {
            margin-top: 15px;
            padding: 12px 30px;
            border-radius: 25px;
            border: 2px solid var(--gold-primary);
            background: var(--gold-glow-weak);
            backdrop-filter: blur(10px);
            color: var(--gold-primary);
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .comment-form button:hover {
            background: rgba(255, 215, 0, 0.4);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            transform: translateY(-2px);
        }

        .related-figures {
            margin-top: 50px;
            margin-bottom: 50px;
            /* Add margin-bottom so it clears the footer */
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
        }

        .related-figures h3 {
            font-family: 'Lobster', cursive;
            font-size: 2em;
            color: #FFD700;
            text-align: center;
            margin-bottom: 25px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .related-figures-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .related-figures-grid a {
            color: #fff;
            text-decoration: none;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            display: block;
            transition: all 0.3s ease;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            text-align: center;
            line-height: 1.4;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .related-figures-grid a:hover {
            background: rgba(255, 215, 0, 0.2);
            border-color: #FFD700;
            color: #FFD700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
            transform: translateY(-3px);
        }

        @media (max-width: 768px) {
            .figure-content h1 {
                font-size: 2em;
            }

            .vote-buttons {
                flex-direction: column;
                gap: 15px;
            }

            .vote-buttons button {
                width: 100%;
            }
        }

        /* Desktop Layout (Two Columns) */
        .figure-grid-layout {
            display: grid;
            grid-template-columns: 1fr 1.6fr;
            gap: 40px;
            align-items: start;
        }

        .figure-left-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: sticky;
            top: 90px;
            align-self: start;
        }

        .figure-right-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        @media (max-width: 992px) {
            .figure-grid-layout {
                grid-template-columns: 1fr;
            }

            .figure-left-column {
                position: relative;
                top: auto;
            }
        }

        .figure-news-section {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
        }

        .news-title {
            font-family: 'Lobster', cursive;
            font-size: 1.6em;
            color: #FFD700;
            margin-bottom: 15px;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .news-item {
            background: rgba(0, 0, 0, 0.3);
            border-left: 3px solid #FFD700;
            padding: 12px 15px;
            border-radius: 8px;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .news-item:hover {
            background: rgba(255, 215, 0, 0.1);
            transform: translateX(5px);
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8em;
            color: #aaa;
            margin-bottom: 5px;
        }

        .news-source {
            font-weight: bold;
            color: #FFD700;
        }

        .news-link {
            color: #fff;
            text-decoration: none;
            font-size: 1.05em;
            font-weight: 500;
            display: block;
            line-height: 1.4;
        }

        .news-link:hover {
            color: #FFD700;
            text-decoration: underline;
        }

        .hidden-news {
            display: none;
        }

        .show-more-btn {
            width: 100%;
            margin-top: 15px;
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid rgba(255, 215, 0, 0.3);
            color: #FFD700;
            padding: 10px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .show-more-btn:hover {
            background: rgba(255, 215, 0, 0.2);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .social-links-section {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 20px;
            padding: 30px;
            margin: 10px 0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .social-title {
            font-family: 'Lobster', cursive;
            font-size: 1.8em;
            color: #FFD700;
            text-align: center;
            margin-bottom: 25px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        }

        .social-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            text-decoration: none;
            color: #fff;
            font-weight: 600;
            font-size: 1.05em;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .social-link:hover::before {
            left: 100%;
        }

        .social-link:hover {
            transform: translateY(-5px);
            border-color: #FFD700;
            box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
            background: rgba(255, 255, 255, 0.15);
        }

        .social-link i {
            font-size: 1.5em;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        }

        @media (max-width: 768px) {
            .social-links-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 10px;
            }

            .social-link {
                padding: 12px 15px;
                font-size: 0.95em;
            }

            .social-link i {
                font-size: 1.3em;
            }
        }