/* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* CSS Variables for Theme (Light/Dark Mode Support) */
        :root {
            --background: 0 0% 100%;
            --foreground: 222.2 84% 4.9%;
            --card: 0 0% 100%;
            --card-foreground: 222.2 84% 4.9%;
            --popover: 0 0% 100%;
            --popover-foreground: 222.2 84% 4.9%;
            --primary: 222.2 47.4% 11.2%;
            --primary-foreground: 210 40% 98%;
            --secondary: 210 40% 96.1%;
            --secondary-foreground: 222.2 47.4% 11.2%;
            --muted: 210 40% 96.1%;
            --muted-foreground: 215.4 16.3% 46.9%;
            --accent: 210 40% 96.1%;
            --accent-foreground: 222.2 47.4% 11.2%;
            --destructive: 0 84.2% 60.2%;
            --destructive-foreground: 210 40% 98%;
            --border: 214.3 31.8% 91.4%;
            --input: 214.3 31.8% 91.4%;
            --ring: 222.2 84% 4.9%;
            --radius: 0.5rem;
        }

        /* Body and Base Typography */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: hsl(var(--background));
            color: hsl(var(--foreground));
            line-height: 1.6;
        }

        /* Layout Classes */
        .min-h-screen { min-height: 100vh; }
        .max-w-7xl { max-width: 80rem; }
        .max-w-4xl { max-width: 56rem; }
        .max-w-2xl { max-width: 42rem; }
        .max-w-lg { max-width: 32rem; }
        .max-w-md { max-width: 28rem; }
        .mx-auto { margin-left: auto; margin-right: auto; }
        .w-full { width: 100%; }

        /* Spacing */
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
        .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
        .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
        .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
        .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
        .px-8 { padding-left: 2rem; padding-right: 2rem; }
        .p-4 { padding: 1rem; }
        .p-6 { padding: 1.5rem; }
        .p-8 { padding: 2rem; }
        .pl-10 { padding-left: 2.5rem; }
        .pr-4 { padding-right: 1rem; }

        .mt-1 { margin-top: 0.25rem; }
        .mt-4 { margin-top: 1rem; }
        .mt-6 { margin-top: 1.5rem; }
        .mt-16 { margin-top: 4rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mr-2 { margin-right: 0.5rem; }
        .ml-2 { margin-left: 0.5rem; }
        .ml-auto { margin-left: auto; }

        /* Flexbox and Grid */
        .flex { display: flex; }
        .flex-col { flex-direction: column; }
        .items-center { align-items: center; }
        .justify-center { justify-content: center; }
        .justify-between { justify-content: space-between; }
        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-4 { gap: 1rem; }
        .space-y-4 > * + * { margin-top: 1rem; }
        .space-y-8 > * + * { margin-top: 2rem; }
        .grid { display: grid; }
        .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

        /* Text */
        .text-center { text-align: center; }
        .text-left { text-align: left; }
        .text-right { text-align: right; }
        .text-xs { font-size: 0.75rem; }
        .text-sm { font-size: 0.875rem; }
        .text-base { font-size: 1rem; }
        .text-lg { font-size: 1.125rem; }
        .text-xl { font-size: 1.25rem; }
        .text-2xl { font-size: 1.5rem; }
        .text-3xl { font-size: 1.875rem; }
        .font-medium { font-weight: 500; }
        .font-bold { font-weight: 700; }

        /* Colors */
        .text-foreground { color: hsl(var(--foreground)); }
        .text-muted-foreground { color: hsl(var(--muted-foreground)); }
        .text-primary { color: hsl(var(--primary)); }
        .text-primary-foreground { color: hsl(var(--primary-foreground)); }
        .text-card-foreground { color: hsl(var(--card-foreground)); }
        .text-accent-foreground { color: hsl(var(--accent-foreground)); }
        .text-blue-600 { color: rgb(37 99 235); }
        .text-green-600 { color: rgb(22 163 74); }
        .text-purple-600 { color: rgb(147 51 234); }
        .text-red-500 { color: rgb(239 68 68); }

        /* Background Colors */
        .bg-background { background-color: hsl(var(--background)); }
        .bg-card { background-color: hsl(var(--card)); }
        .bg-popover { background-color: hsl(var(--popover)); }
        .bg-primary { background-color: hsl(var(--primary)); }
        .bg-accent { background-color: hsl(var(--accent)); }
        .bg-muted { background-color: hsl(var(--muted)); }
        .bg-white { background-color: white; }
        .bg-muted-30 { background-color: hsl(var(--muted) / 0.3); }
        .bg-muted-50 { background-color: hsl(var(--muted) / 0.5); }
        .bg-muted-20 { background-color: hsl(var(--muted) / 0.2); }

        /* Borders */
        .border { border: 1px solid hsl(var(--border)); }
        .border-b { border-bottom: 1px solid hsl(var(--border)); }
        .border-t { border-top: 1px solid hsl(var(--border)); }
        .border-input { border-color: hsl(var(--input)); }
        .border-border { border-color: hsl(var(--border)); }

        /* Border Radius */
        .rounded-lg { border-radius: var(--radius); }
        .rounded-full { border-radius: 9999px; }

        /* Shadows */
        .shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
        .shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
        .shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

        /* Positioning */
        .relative { position: relative; }
        .absolute { position: absolute; }
        .left-0 { left: 0; }
        .right-0 { right: 0; }
        .left-3 { left: 0.75rem; }
        .right-3 { right: 0.75rem; }
        .top-1-2 { top: 50%; }
        .top-full { top: 100%; }
        .translate-y-minus-half { transform: translateY(-50%); }
        .z-50 { z-index: 50; }

        /* Sizes */
        .h-4 { height: 1rem; }
        .h-5 { height: 1.25rem; }
        .h-8 { height: 2rem; }
        .w-4 { width: 1rem; }
        .w-5 { width: 1.25rem; }
        .w-8 { width: 2rem; }
        .max-h-60 { max-height: 15rem; }

        /* Display */
        .hidden { display: none; }
        .block { display: block; }
        .inline { display: inline; }
        .overflow-auto { overflow: auto; }
        .overflow-x-auto { overflow-x: auto; }

        /* Component Styles */
        .search-container { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; }
        .search-input {
            width: 100%;
            border-radius: var(--radius);
            border: 1px solid hsl(var(--input));
            background-color: hsl(var(--background));
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            font-size: 1rem;
            color: hsl(var(--foreground));
            transition: all 0.2s;
        }
        .search-input::placeholder { color: hsl(var(--muted-foreground)); }
        .search-input:focus {
            outline: none;
            box-shadow: 0 0 0 2px hsl(var(--primary));
            border-color: transparent;
        }

        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            height: 1.25rem;
            width: 1.25rem;
            transform: translateY(-50%);
            color: hsl(var(--muted-foreground));
        }

        .suggestions-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 50;
            margin-top: 0.25rem;
            max-height: 15rem;
            overflow: auto;
            border-radius: var(--radius);
            border: 1px solid hsl(var(--border));
            background-color: hsl(var(--popover));
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
        }

        .suggestion-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-bottom: 1px solid hsl(var(--border));
            transition: background-color 0.2s;
        }
        .suggestion-item:last-child { border-bottom: 0; }
        .suggestion-item:hover, .suggestion-item.selected { background-color: hsl(var(--accent)); }

        .player-card {
            width: 100%;
            max-width: 28rem;
            margin: 0 auto;
            background-color: hsl(var(--card));
            border-radius: var(--radius);
            border: 1px solid hsl(var(--border));
            padding: 1.5rem;
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            transition: all 0.2s;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .stat-item {
            text-align: center;
            padding: 1rem;
            background-color: hsl(var(--background));
            border-radius: var(--radius);
            border: 1px solid hsl(var(--border));
        }

        .stat-buttons {
            display: flex;
            gap: 0.5rem;
            width: 100%;
            max-width: 32rem;
            margin: 0 auto;
        }

        .stat-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-radius: var(--radius);
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
            flex: 1;
        }

        .stat-button.active {
            background-color: hsl(var(--primary));
            color: hsl(var(--primary-foreground));
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        }

        .stat-button:not(.active) {
            background-color: hsl(var(--background));
            border: 1px solid hsl(var(--border));
            color: hsl(var(--foreground));
        }

        .stat-button:not(.active):hover {
            background-color: hsl(var(--accent));
            color: hsl(var(--accent-foreground));
            transform: scale(1.05);
        }

        .table-wrapper {
            overflow-x: auto;
            border-radius: var(--radius);
            border: 1px solid hsl(var(--border));
            background-color: hsl(var(--card));
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        }

        .data-table { width: 100%; border-collapse: collapse; }
        .table-header { border-bottom: 1px solid hsl(var(--border)); background-color: hsl(var(--muted) / 0.5); }
        .table-header th { text-align: left; padding: 1rem; font-weight: 700; color: hsl(var(--foreground)); }

        .sort-button {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            color: hsl(var(--foreground));
            background: none;
            border: none;
            cursor: pointer;
            transition: color 0.2s;
        }
        .sort-button:hover { color: hsl(var(--primary)); }

        .table-row {
            border-bottom: 1px solid hsl(var(--border));
            transition: background-color 0.2s;
            cursor: pointer;
        }
        .table-row:last-child { border-bottom: 0; }
        .table-row:hover { background-color: hsl(var(--accent)); }
        .table-row.selected { background-color: hsl(var(--accent)); box-shadow: inset 0 0 0 2px hsl(var(--primary)); }
        .table-row:nth-child(even) { background-color: hsl(var(--background)); }
        .table-row:nth-child(odd) { background-color: hsl(var(--muted) / 0.2); }
        .table-row td { padding: 1rem; }

        .loading-spinner {
            height: 1rem;
            width: 1rem;
            border: 2px solid hsl(var(--primary));
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-spinner-large {
            height: 2rem;
            width: 2rem;
            border: 2px solid hsl(var(--primary));
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Responsive */
        @media (max-width: 640px) {
            .stat-buttons { flex-direction: column; }
            .stat-button { width: 100%; }
            .grid-cols-2 { grid-template-columns: 1fr; }
            .text-3xl { font-size: 1.5rem; }
            .show-mobile { display: inline; }
            .hide-mobile { display: none; }
        }

        @media (min-width: 640px) {
            .hide-desktop { display: none; }
            .show-desktop { display: inline; }
        }