:root {
            --site-primary: #c77700;
            --site-primary-light: #ffffff;
            --site-secondary: #c09b95;
            --site-accent: #FF6B35;
            --site-red: #E53E3E;
            --site-bg: #1A1A1C;
            --site-surface: #2A2A2C;
            --site-surface-hover: #3A3A3C;
            --site-text: #E5E5E7;
            --site-text-muted: #9CA3AF;
            --site-border: #374151;
            --site-shadow: rgba(0, 0, 0, 0.3);
            --site-gradient: linear-gradient(135deg, var(--site-primary) 0%, var(--site-secondary) 100%);
        }

        [data-theme="light"] {
            --site-bg: #FFFFFF;
            --site-surface: #F8F9FA;
            --site-surface-hover: #E9ECEF;
            --site-text: #1A202C;
            --site-text-muted: #6B7280;
            --site-border: #E5E7EB;
            --site-shadow: rgba(0, 0, 0, 0.1);
        }

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

        body {
            font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--site-bg);
            color: var(--site-text);
            line-height: 1.6;
            padding-top: 70px;
        }

        .site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* Header */
        .site-header {
            background: var(--site-surface);
            backdrop-filter: blur(10px);
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            border-bottom: 1px solid var(--site-border);
        }
        .site-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
        .site-logo { font-size: 1.8rem; font-weight: 800; background: var(--site-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
        .site-nav-menu { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
        .site-nav-link { color: var(--site-text-muted); text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; padding: 0.5rem 0; }
        .site-nav-link:hover { color: var(--site-primary-light); }
        .site-theme-toggle, .site-mobile-toggle { background: none; border: 1px solid var(--site-border); color: var(--site-text); padding: 0.5rem; border-radius: 8px; cursor: pointer; font-size: 1.2rem; }
        .site-mobile-toggle { display: none; border: none; font-size: 1.5rem; }

        /* Layout */
        .player-layout { display: grid; grid-template-columns: 1fr 402px; gap: 24px; padding: 24px 0; }
        .player-main { display: flex; flex-direction: column; gap: 12px; }

        /* 3D Viewer */
        .viewer-container { position: relative; background: #000; overflow: hidden; aspect-ratio: 16/9; }
        .viewer-container.pseudo-fullscreen { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 9999 !important; aspect-ratio: unset !important; }
        .viewer-container.fullscreen { aspect-ratio: unset !important; }
        .viewer-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a1c 0%, #2a2a2c 100%); color: var(--site-text-muted); font-size: 1.2rem; }
        .fullscreen-logo { position: absolute; top: 20px; left: 20px; z-index: 10; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; font-size: 1.5rem; font-weight: 800; background: var(--site-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .viewer-container.fullscreen .fullscreen-logo, .viewer-container.pseudo-fullscreen .fullscreen-logo { opacity: 1; }
        .fullscreen-btn { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.8); border: none; color: #fff; padding: 6px 12px; cursor: pointer; font-size: 0.875rem; z-index: 5; font-family: inherit; }
        .fullscreen-btn:hover { background: rgba(0,0,0,0.95); }

        /* Project Info */
        .project-info { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
        .project-title { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
        .project-meta { display: flex; align-items: center; gap: 8px; color: var(--site-text-muted); font-size: 0.875rem; }

        /* Actions Bar */
        .actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--site-border); flex-wrap: wrap; }
        .action-group { display: flex; gap: 4px; }
        .action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: transparent; border: none; color: var(--site-text); cursor: pointer; font-size: 0.875rem; font-weight: 500; font-family: inherit; }
        .action-btn:hover { background: var(--site-surface); }
        .action-btn.active { color: var(--site-primary-light); }
        .action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .star-rating { display: flex; gap: 2px; align-items: center; }
        .star { cursor: pointer; font-size: 1.2rem; color: var(--site-text-muted); }
        .star.active { color: #FFD700; }
        .star:hover { color: #FFD700; }
        .star.disabled { pointer-events: none; }

        /* Author Card */
        .author-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
        .author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--site-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; overflow: hidden; }
        .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .author-info { flex: 1; }
        .author-name { font-weight: 500; font-size: 0.875rem; }
        .author-name a { color: var(--site-text); text-decoration: none; }
        .author-name a:hover { color: var(--site-primary); }
        .author-meta { font-size: 0.75rem; color: var(--site-text-muted); margin-top: 2px; }
        .subscribe-btn { background: var(--site-red); color: #fff; border: none; padding: 10px 16px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.875rem; }
        .subscribe-btn:hover { background: #C53030; }
        .subscribe-btn.subscribed { background: var(--site-surface); color: var(--site-text); }
        .subscribe-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        /* Description */
        .description-box { background: var(--site-surface); padding: 12px; margin-top: 12px; }
        .description-text { line-height: 1.6; white-space: pre-wrap; font-size: 0.875rem; }
        .description-text.collapsed { max-height: 60px; overflow: hidden; }
        .show-more { cursor: pointer; font-weight: 500; margin-top: 8px; display: inline-block; font-size: 0.875rem; }

        /* Comments */
        .comments-section { margin-top: 24px; }
        .comments-header { font-size: 1.125rem; font-weight: 600; margin-bottom: 24px; }
        .comments-disabled { color: var(--site-text-muted); font-style: italic; }
        .comment-input { display: flex; gap: 12px; margin-bottom: 32px; align-items: flex-start; }
        .comment-input input { flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--site-border); padding: 8px 0; color: var(--site-text); font-family: inherit; font-size: 0.875rem; }
        .comment-input input:focus { outline: none; border-bottom-color: var(--site-text); border-bottom-width: 2px; }
        .comment-input button { background: var(--site-primary); color: #fff; border: none; padding: 8px 16px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.875rem; opacity: 0.5; pointer-events: none; }
        .comment-input button.active { opacity: 1; pointer-events: all; }
        .login-prompt { color: var(--site-text-muted); font-size: 0.875rem; }
        .login-prompt a { color: var(--site-primary); }
        .comment { display: flex; gap: 16px; margin-bottom: 24px; }
        .comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--site-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-shrink: 0; font-size: 0.875rem; overflow: hidden; }
        .comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .comment-content { flex: 1; }
        .comment-author { font-weight: 500; font-size: 0.8125rem; }
        .comment-time { font-size: 0.75rem; color: var(--site-text-muted); margin-left: 8px; }
        .comment-text { margin-top: 4px; font-size: 0.875rem; line-height: 1.6; }
        .comment-actions { display: flex; gap: 12px; margin-top: 8px; }
        .comment-action { background: none; border: none; color: var(--site-text-muted); cursor: pointer; font-size: 0.75rem; padding: 4px 0; }
        .comment-action:hover { color: var(--site-text); }
        .comment-action.liked { color: var(--site-primary); }
        .comment.pinned { background: var(--site-surface); padding: 12px; margin: -12px; margin-bottom: 12px; border-left: 3px solid var(--site-primary); }
        .pinned-badge { font-size: 0.7rem; color: var(--site-primary); margin-left: 8px; }
        .load-more-comments { background: var(--site-surface); border: none; color: var(--site-text); padding: 12px 24px; cursor: pointer; font-family: inherit; width: 100%; margin-top: 16px; }

        /* Sidebar Gallery */
        .sidebar-gallery { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
        .sidebar-gallery::-webkit-scrollbar { width: 6px; }
        .sidebar-gallery::-webkit-scrollbar-track { background: transparent; }
        .sidebar-gallery::-webkit-scrollbar-thumb { background: var(--site-border); border-radius: 3px; }
        .gallery-item { display: flex; gap: 8px; padding: 0; background: transparent; border: none; cursor: pointer; text-align: left; }
        .gallery-item:hover { background: var(--site-surface); }
        .gallery-item.active .gallery-thumb { border: 2px solid var(--site-primary); }
        .gallery-thumb { width: 168px; height: 94px; background: #000; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--site-text-muted); font-size: 0.75rem; overflow: hidden; }
        .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .gallery-info { flex: 1; display: flex; flex-direction: column; padding: 4px 0; }
        .gallery-title { font-weight: 500; font-size: 0.875rem; margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--site-text); }
        .gallery-author { font-size: 0.75rem; color: var(--site-text-muted); }

        /* Mobile */
        .mobile-title-bar, .mobile-gallery-section { display: none; }
        .desktop-title { display: block; }

        @media (max-width: 1200px) {
            .player-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; }
            .viewer-container { aspect-ratio: 4/3; order: 1; }
            .desktop-title { display: none !important; }
            .mobile-title-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--site-border); order: 2; }
            .mobile-title-bar .project-title { font-size: 1rem; }
            .mobile-gallery-section { display: block; order: 3; margin-top: 16px; }
            .mobile-gallery-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
            #sidebarGallery { display: none; }
            #mobileGallery { display: flex; flex-direction: row; overflow-x: auto; gap: 12px; max-height: none; padding-bottom: 8px; }
            #mobileGallery .gallery-item { flex-direction: column; min-width: 200px; }
            #mobileGallery .gallery-thumb { width: 200px; height: 112px; }
            .player-main-content { order: 4; }
            .project-info { display: none; }
        }

        @media (max-width: 768px) {
            .site-mobile-toggle { display: block; }
            .site-nav-menu { position: fixed; top: 70px; left: 0; right: 0; background: var(--site-surface); flex-direction: column; padding: 2rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
            .site-nav-menu.site-active { transform: translateY(0); opacity: 1; visibility: visible; }
        }

        /* Toast Notifications */
        .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; }
        .toast { background: var(--site-surface); color: var(--site-text); padding: 12px 20px; border-radius: 8px; margin-top: 8px; box-shadow: 0 4px 12px var(--site-shadow); animation: slideIn 0.3s ease; }
        .toast.error { background: var(--site-red); color: white; }
        @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }