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

        :root {
            --primary: #00D084;
            --primary-dark: #00B871;
            --secondary: #6C5CE7;
            --bg-dark: #0F0F23;
            --bg-card: #1A1A2E;
            --bg-card-hover: #252542;
            --text-primary: #FFFFFF;
            --text-secondary: #A0A0B0;
            --text-muted: #6B6B80;
            --border: #2A2A40;
            --star: #FFD700;
            --danger: #FF6B6B;
            --gradient: linear-gradient(135deg, #00D084 0%, #00B871 100%);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        /* Header */
        .header {
            position: sticky;
            top: 0;
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            padding: 0 20px;
        }

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
            gap: 20px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-menu {
            display: flex;
            gap: 8px;
        }

        .mobile-search-box {
            display: none;
            margin: 16px 0;
        }

        .mobile-search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            background: var(--bg-dark);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 14px;
            transition: all 0.2s;
        }

        .mobile-search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
        }

        .mobile-search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .nav-link {
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.2s;
            color: var(--text-secondary);
        }

        .nav-link:hover,
        .nav-link.active {
            background: var(--bg-card);
            color: var(--text-primary);
        }

        .search-box {
            flex: 1;
            max-width: 400px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 14px;
            transition: all 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
        }

        /* Main Layout */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 30px 20px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
        }

        .content-area {
            min-width: 0;
        }

        /* Share Buttons - Collapsible */
        .share-buttons {
            display: flex;
            position: fixed;
            right: 24px;
            bottom: 100px;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            z-index: 100;
            top: auto;
            transform: none;
        }

        .share-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            border: none;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transform: translateY(20px) scale(0.8);
            pointer-events: none;
        }

        .share-buttons.active .share-btn {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .share-btn:hover {
            transform: scale(1.15);
        }

        .share-buttons.active .share-btn:hover {
            transform: scale(1.15) translateX(-5px);
        }

        .share-btn.twitter { background: #1DA1F2; }
        .share-btn.facebook { background: #4267B2; }
        .share-btn.reddit { background: #FF4500; }
        .share-btn.telegram { background: #0088cc; }
        .share-btn.copy-link { background: var(--secondary); }

        /* Main Share Toggle Button */
        .share-toggle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #00D084;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            border: none;
            box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
            z-index: 101;
        }

        .share-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 208, 132, 0.5);
        }

        .share-toggle svg {
            transition: transform 0.3s ease;
        }

        .share-buttons.active .share-toggle svg {
            transform: rotate(45deg);
        }

        /* Staggered animation delays */
        .share-buttons.active .share-btn:nth-child(1) { transition-delay: 0.05s; }
        .share-buttons.active .share-btn:nth-child(2) { transition-delay: 0.1s; }
        .share-buttons.active .share-btn:nth-child(3) { transition-delay: 0.15s; }
        .share-buttons.active .share-btn:nth-child(4) { transition-delay: 0.2s; }
        .share-buttons.active .share-btn:nth-child(5) { transition-delay: 0.25s; }


        /* Search Results Count */
        .results-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .results-count {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .results-count strong {
            color: var(--text-primary);
        }

        .sort-dropdown {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sort-dropdown label {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .sort-select {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 16px;
            color: var(--text-primary);
            font-size: 14px;
            cursor: pointer;
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--primary);
        }

        /* Search Results List */
        .search-results-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .search-result-card {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            gap: 20px;
            border: 1px solid var(--border);
            transition: all 0.2s;
        }

        .search-result-card:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .result-icon {
            width: 80px;
            height: 80px;
            border-radius: 18px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .result-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .result-content {
            flex: 1;
            min-width: 0;
        }

        .result-title {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .result-title a:hover {
            color: var(--primary);
        }

        .result-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 10px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .result-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .category-badge {
            background: var(--secondary);
            color: white;
            padding: 3px 10px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
        }

        .result-desc {
            font-size: 14px;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.6;
        }

        .result-actions {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .download-btn {
            background: var(--gradient);
            color: white;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .download-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(0, 208, 132, 0.3);
        }

        /* No Results */
        .no-results {
            text-align: center;
            padding: 80px 40px;
            background: var(--bg-card);
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        .no-results-icon {
            width: 120px;
            height: 120px;
            margin: 0 auto 24px;
            background: var(--bg-dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 50px;
        }

        .no-results-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .no-results-text {
            color: var(--text-secondary);
            font-size: 15px;
            max-width: 400px;
            margin: 0 auto 24px;
            line-height: 1.7;
        }

        .no-results-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 24px;
        }

        .suggestion-link {
            padding: 10px 20px;
            background: var(--bg-dark);
            border-radius: 25px;
            color: var(--text-secondary);
            font-size: 14px;
            transition: all 0.2s;
        }

        .suggestion-link:hover {
            background: var(--primary);
            color: white;
        }

        /* ==================== */
        /* AUTHOR PAGE STYLES */
        /* ==================== */

        .author-header {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 30px;
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .author-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            opacity: 0.1;
        }

        .author-profile {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            position: relative;
        }

        .author-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--primary);
            flex-shrink: 0;
            background: var(--bg-dark);
        }

        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .author-avatar-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            font-weight: 700;
            color: var(--primary);
            background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .verified-badge {
            background: var(--primary);
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .author-username {
            color: var(--text-secondary);
            font-size: 15px;
            margin-bottom: 16px;
        }

        .author-bio {
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.7;
            max-width: 600px;
            margin-bottom: 20px;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: pre-line;
        }

        .author-stats {
            display: flex;
            gap: 30px;
        }

        .author-stat {
            text-align: center;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 13px;
            color: var(--text-muted);
        }

        /* Author Games Section */
        .author-games-section {
            margin-bottom: 30px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 22px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title-icon {
            width: 32px;
            height: 32px;
            background: var(--gradient);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .filter-tags {
            display: flex;
            gap: 8px;
        }

        .filter-tag {
            padding: 6px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
            font-size: 13px;
        }

        .filter-tag:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .filter-tag.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .games-count {
            color: var(--text-muted);
            font-size: 14px;
            white-space: nowrap;
        }

        /* Author Game List */
        .author-games-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .author-game-card {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            gap: 20px;
            border: 1px solid var(--border);
            transition: all 0.2s;
        }

        .author-game-card:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .game-icon {
            width: 80px;
            height: 80px;
            border-radius: 18px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .game-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .game-content {
            flex: 1;
            min-width: 0;
        }

        .game-title {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .game-title a:hover {
            color: var(--primary);
        }

        .game-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 10px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .game-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .game-desc {
            font-size: 14px;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.6;
        }

        .game-actions {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        /* Sidebar */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .sidebar-widget {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid var(--border);
        }

        .widget-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .widget-title-icon {
            font-size: 18px;
        }

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

        .sidebar-game {
            display: flex;
            gap: 12px;
            padding: 10px;
            border-radius: 10px;
            transition: background 0.2s;
        }

        .sidebar-game:hover {
            background: var(--bg-card-hover);
        }

        .sidebar-game-rank {
            width: 24px;
            height: 24px;
            background: var(--border);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
        }

        .sidebar-game-rank.top-1 {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #000;
        }

        .sidebar-game-rank.top-2 {
            background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
            color: #000;
        }

        .sidebar-game-rank.top-3 {
            background: linear-gradient(135deg, #CD7F32, #B87333);
            color: #fff;
        }

        .sidebar-game-image {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .sidebar-game-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

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

        .sidebar-game-title {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .sidebar-game-meta {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Categories Widget */
        .category-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .category-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px;
            border-radius: 10px;
            transition: all 0.2s;
        }

        .category-item:hover {
            background: var(--bg-card-hover);
        }

        .category-item-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .category-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .category-count {
            background: var(--border);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 40px;
        }

        .page-btn {
            min-width: 44px;
            height: 44px;
            padding: 0 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-primary);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .page-btn:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
        }

        .page-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Rating Stars */
        .rating {
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--star);
        }

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

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

            .sidebar {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
            }

            .author-profile {
                flex-direction: column;
                text-align: center;
                align-items: center;
            }

            .author-name {
                justify-content: center;
            }

            .author-bio {
                margin: 0 auto 20px;
            }

            .author-stats {
                justify-content: center;
            }

        }

        @media (max-width: 768px) {
            .header-inner {
                height: 60px;
            }

            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--bg-card);
                flex-direction: column;
                padding: 20px;
                border-bottom: 1px solid var(--border);
            }

            .nav-menu.active {
                display: flex;
            }

            .mobile-menu-btn {
                display: block;
            }

            .search-box {
                display: none;
            }

            .mobile-search-box {
                display: block;
            }

            .sidebar {
                grid-template-columns: 1fr;
            }

            .search-result-card,
            .author-game-card {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 16px;
                padding: 16px;
            }

            .result-icon,
            .game-icon {
                width: 70px;
                height: 70px;
                flex-shrink: 0;
            }

            .result-content,
            .game-content {
                flex: 1;
                min-width: 0; /* Fix flex overflow */
            }

            .result-actions,
            .game-actions {
                width: 100%;
                margin-top: 0;
            }

            .download-btn {
                width: 100%;
                justify-content: center;
                padding: 10px;
            }

            /* Hide description on mobile to save space */
            .game-desc,
            .result-desc {
                display: none;
            }

            .game-meta,
            .result-meta {
                flex-wrap: wrap;
                gap: 8px 12px;
                margin-bottom: 0;
            }

            .author-header {
                padding: 24px;
            }

            .author-avatar {
                width: 100px;
                height: 100px;
            }

            .author-name {
                font-size: 22px;
                flex-direction: column;
                gap: 8px;
            }

            .author-stats {
                gap: 20px;
            }

            .stat-value {
                font-size: 20px;
            }

            .pagination {
                flex-wrap: nowrap;
                justify-content: center;
                gap: 5px;
            }

            .page-btn {
                flex-shrink: 0;
                min-width: 36px;
                height: 36px;
                padding: 0 10px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .filter-tags {
                justify-content: center;
                flex-wrap: wrap;
            }

            .filter-tag {
                padding: 8px 12px;
                font-size: 14px;
            }

            .results-info {
                flex-direction: column;
                gap: 12px;
                text-align: center;
            }

            .results-title {
                font-size: 20px;
            }

            .result-card {
                padding: 16px;
                gap: 16px;
            }

            .result-content h3 {
                font-size: 16px;
            }

            .result-meta {
                font-size: 12px;
                gap: 8px;
            }

            .result-actions {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .btn {
                padding: 8px 16px;
                font-size: 14px;
            }

            .pagination {
                gap: 4px;
            }

            .page-btn {
                min-width: 32px;
                height: 32px;
                padding: 0 8px;
                font-size: 12px;
            }

            .sidebar-widget {
                padding: 16px;
            }

            .widget-title {
                font-size: 16px;
                margin-bottom: 16px;
            }

            .author-game-card {
                padding: 16px;
                gap: 16px;
            }

            .game-info h4 {
                font-size: 14px;
            }

            /* Author Profile Mobile Styles */
            .author-profile {
                padding: 20px 16px;
            }

            .author-avatar {
                width: 80px;
                height: 80px;
            }

            .author-details h1 {
                font-size: 20px;
            }

            .author-stats {
                flex-direction: row;
                gap: 24px;
                text-align: center;
                justify-content: center;
            }

            .stat-item {
                font-size: 14px;
            }

            .stat-value {
                font-size: 18px;
            }
        }
