/*!
 * LLM Leaderboard Page Styles
 * 
 * Зависимости:
 * - base.css для CSS-переменных темы (--text-primary, --accent-primary, и т.д.)
 * - main.css для базовой структуры и компонентов
 * 
 * Этот файл содержит специфичные стили для страницы leaderboard
 * с поддержкой стекломорфизма, анимаций и accessibility.
 */

/* Local table variables for leaderboard */
.leaderboard-container {
    --lb-table-container-border: rgba(139, 92, 246, 0.15);
    --lb-table-container-bg: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(35, 35, 42, 0.9) 100%);
    --lb-table-container-shadow: 0 16px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    --lb-table-top-gradient: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(16, 185, 129, 0.5), rgba(245, 158, 11, 0.5));
    --lb-table-header-bg: linear-gradient(15deg, rgba(39, 39, 42, 0.95) 0%, rgba(63, 63, 70, 0.9) 100%);
    --lb-table-header-border: rgba(139, 92, 246, 0.2);
    --lb-table-header-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --lb-table-header-hover-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(63, 63, 70, 0.95) 100%);
    --lb-table-header-hover-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    --lb-table-row-hover-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    --lb-table-row-hover-shadow: 0 8px 25px rgba(139, 92, 246, 0.1), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .leaderboard-container {
    --lb-table-container-border: var(--border-primary);
    --lb-table-container-bg: var(--glass-bg);
    --lb-table-container-shadow: var(--shadow-xl);
    --lb-table-top-gradient: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(58, 175, 169, 0.5), rgba(245, 158, 11, 0.5));
    --lb-table-header-bg: var(--glass-bg);
    --lb-table-header-border: var(--border-secondary);
    --lb-table-header-shadow: var(--shadow-s);
    --lb-table-header-hover-bg: rgba(255, 255, 255, 0.4);
    --lb-table-header-hover-shadow: var(--shadow-m);
    --lb-table-row-hover-bg: rgba(139, 92, 246, 0.08);
    --lb-table-row-hover-shadow: var(--shadow-l);
}

/* Local surface variables for section cards */
.section-card {
    --surface-bg: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(35, 35, 42, 0.8) 100%);
    --surface-border: rgba(139, 92, 246, 0.15);
    --surface-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    --surface-top-gradient: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(16, 185, 129, 0.5), rgba(245, 158, 11, 0.5));
    --surface-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
}

[data-theme="light"] .section-card {
    --surface-bg: var(--glass-bg);
    --surface-border: var(--glass-border);
    --surface-shadow: var(--shadow-xl);
    --surface-top-gradient: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(58, 175, 169, 0.5), rgba(245, 158, 11, 0.5));
    --surface-hover-shadow: var(--shadow-xl);
}

/* Local surface variables for metric cards */
.metric-card {
    --surface-bg: rgba(17, 17, 17, 0.4);
    --surface-border: rgba(63, 63, 70, 0.3);
    --surface-hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    --surface-accent-border: rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .metric-card {
    --surface-bg: var(--glass-bg);
    --surface-border: var(--border-secondary);
    --surface-hover-shadow: var(--shadow-l);
    --surface-accent-border: rgba(139, 92, 246, 0.4);
}

/* Local surface variables for price cards */
.price-card {
    --surface-bg: rgba(17, 17, 17, 0.4);
    --surface-border: rgba(63, 63, 70, 0.3);
    --surface-hover-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
    --surface-accent-border: rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .price-card {
    --surface-bg: var(--glass-bg);
    --surface-border: var(--border-secondary);
    --surface-hover-shadow: var(--shadow-l);
    --surface-accent-border: rgba(16, 185, 129, 0.4);
}

/* Local surface variables for property cards */
.property-card {
    --surface-bg: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(35, 35, 42, 0.8) 100%);
    --surface-border: rgba(139, 92, 246, 0.15);
    --surface-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
    --surface-accent-border: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .property-card {
    --surface-bg: var(--glass-bg);
    --surface-border: var(--border-secondary);
    --surface-hover-shadow: var(--shadow-xl);
    --surface-accent-border: rgba(139, 92, 246, 0.25);
}

/* Local header variables */
.leaderboard-header {
    --lb-header-bg: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(30, 30, 40, 0.9) 100%);
    --lb-header-border: rgba(139, 92, 246, 0.2);
    --lb-header-shimmer: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    --lb-header-title-fg: #ffffff;
    --lb-header-title-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --lb-header-title-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* Local filters variables */
.leaderboard-filters {
    --lb-filters-bg: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(35, 35, 42, 0.8) 100%);
    --lb-filters-border: rgba(139, 92, 246, 0.15);
    --lb-filters-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    --lb-filters-top-gradient: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    --lb-filter-btn-color: #a1a1aa;
    --lb-filter-btn-bg: linear-gradient(135deg, rgba(63, 63, 70, 0.3) 0%, rgba(39, 39, 42, 0.5) 100%);
    --lb-filter-btn-border: rgba(63, 63, 70, 0.5);
    --lb-filter-btn-hover-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(63, 63, 70, 0.7) 100%);
    --lb-filter-btn-hover-color: #f1f5f9;
    --lb-filter-btn-hover-border: rgba(139, 92, 246, 0.4);
    --lb-filter-btn-hover-shadow: 0 3px 5px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
    --lb-filter-btn-active-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    --lb-filter-btn-active-color: #8b5cf6;
    --lb-filter-btn-active-border: #8b5cf6;
    --lb-filter-btn-active-shadow: 0 0 3px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}

[data-theme="light"] .leaderboard-header {
    --lb-header-bg: rgba(250, 248, 242, 0.8);
    --lb-header-border: rgba(139, 92, 246, 0.18);
    --lb-header-shimmer: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    --lb-header-title-fg: var(--text-primary);
    --lb-header-title-gradient: linear-gradient(135deg, var(--inkblue), var(--accent-primary), var(--teal));
    --lb-header-title-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .leaderboard-filters {
    --lb-filters-bg: var(--glass-bg);
    --lb-filters-border: var(--border-secondary);
    --lb-filters-shadow: var(--shadow-l);
    --lb-filters-top-gradient: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    --lb-filter-btn-color: var(--text-secondary);
    --lb-filter-btn-bg: var(--glass-bg);
    --lb-filter-btn-border: var(--border-secondary);
    --lb-filter-btn-hover-bg: rgba(255, 255, 255, 0.4);
    --lb-filter-btn-hover-color: var(--text-primary);
    --lb-filter-btn-hover-border: rgba(139, 92, 246, 0.4);
    --lb-filter-btn-hover-shadow: var(--shadow-m);
    --lb-filter-btn-active-bg: rgba(139, 92, 246, 0.2);
    --lb-filter-btn-active-color: var(--accent-primary);
    --lb-filter-btn-active-border: var(--accent-primary);
    --lb-filter-btn-active-shadow: var(--shadow-s);
}

/* Section card styles using surface variables */
.section-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--surface-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(8px)) {
    .section-card {
        backdrop-filter: var(--blur);
    }
}

.section-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--surface-top-gradient);
    content: '';
}

.section-card:hover {
    box-shadow: var(--surface-hover-shadow);
    transform: translateY(-2px);
}

/* Metric card styles using surface variables */
.metric-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(8px)) {
    .metric-card {
        backdrop-filter: var(--blur);
    }
}

.metric-card:hover {
    border-color: var(--surface-accent-border);
    box-shadow: var(--surface-hover-shadow);
    transform: translateY(-2px);
}

/* Price card styles using surface variables */
.price-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(8px)) {
    .price-card {
        backdrop-filter: var(--blur);
    }
}

.price-card:hover {
    border-color: var(--surface-accent-border);
    box-shadow: var(--surface-hover-shadow);
    transform: translateY(-2px);
}

/* Property card styles using surface variables */
.property-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(8px)) {
    .property-card {
        backdrop-filter: var(--blur);
    }
}

.property-card:hover {
    border-color: var(--surface-accent-border);
    box-shadow: var(--surface-hover-shadow);
    transform: translateY(-2px);
}

/* Import base styles from the provided CSS */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        overflow-x: hidden;
        min-height: 100vh;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        line-height: 1.6;
        color: var(--text-primary);
        background: var(--leaderboard-bg-gradient, linear-gradient(135deg, #0c0c0f 0%, #1a1a2e 25%, #16213e 50%, #0f1419 75%, #0a0a0a 100%));
        background-attachment: fixed;
    }

    /* Animated background particles */
    body::before {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(2px 2px at 20px 30px, var(--particle-1, rgba(255, 255, 255, 0.1)), transparent),
                        radial-gradient(2px 2px at 40px 70px, var(--particle-2, rgba(139, 92, 246, 0.1)), transparent),
                        radial-gradient(1px 1px at 90px 40px, var(--particle-3, rgba(16, 185, 129, 0.1)), transparent),
                        radial-gradient(1px 1px at 130px 80px, var(--particle-4, rgba(245, 158, 11, 0.1)), transparent);
        background-repeat: repeat;
        background-size: 200px 200px;
        animation: float 20s ease-in-out infinite;
        content: '';
        pointer-events: none;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        33% { transform: translateY(-20px) rotate(1deg); }
        66% { transform: translateY(-10px) rotate(-1deg); }
    }

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

    /* Header */
    .header {
        position: relative;
        overflow: hidden;
        margin-bottom: 50px;
        padding: 40px 0 60px;
        border-bottom: 1px solid var(--lb-header-border);
    }

    @supports (backdrop-filter: blur(8px)) {
        .header {
            background: var(--lb-header-bg);
            backdrop-filter: blur(30px);
        }
    }

    .header::before {
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background: var(--lb-header-shimmer);
        content: '';
        animation: shimmer 8s linear infinite;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    .header h1 {
        position: relative;
        z-index: 1;
        font-size: 3.5rem;
        font-weight: 800;
        text-align: center;
        color: var(--lb-header-title-fg);
        background: var(--lb-header-title-gradient);
        background-size: 300% 300%;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: var(--lb-header-title-shadow);
        animation: gradientShift 12s ease-in-out infinite;
    }

    @keyframes gradientShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    .header p {
        position: relative;
        z-index: 1;
        margin-top: 15px;
        font-size: 1.2rem;
        font-weight: 400;
        text-align: center;
        color: var(--text-secondary);
        opacity: 0.9;
    }

    /* Filters Section */
    .filters-section {
        position: relative;
        overflow: hidden;
        margin-bottom: 40px;
        padding: 32px;
        border: 1px solid var(--lb-filters-border);
        border-radius: 24px;
        box-shadow: var(--lb-filters-shadow);
    }

    @supports (backdrop-filter: blur(8px)) {
        .filters-section {
            background: var(--lb-filters-bg);
            backdrop-filter: blur(20px);
        }
    }

    .filters-section::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 1px;
        background: var(--lb-filters-top-gradient);
        content: '';
    }

    .filters-container {
        display: flex;
        overflow-x: auto;
        align-items: center;
        gap: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filters-container::-webkit-scrollbar {
        display: none;
    }

    .filters-header {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-primary);
    }

    .filter-icon {
        width: 16px;
        height: 16px;
    }

    .filters-title {
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        color: var(--text-primary);
    }

    .filters-divider {
        width: 1px;
        height: 40px;
        flex-shrink: 0;
        background: var(--border-primary);
    }

    .filters-content {
        display: flex;
        min-width: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
    }

    .filter-group {
        display: flex;
        min-width: 0;
        flex-direction: row;
        gap: 8px;
    }

    .filter-group-header {
        display: flex;
        min-height: 20px;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .filter-group-title {
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        color: var(--text-secondary);
    }

    .filter-buttons {
        display: flex;
        padding: 4px;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .filter-btn {
        position: relative;
        display: inline-flex;
        overflow: hidden;
        min-width: 36px;
        min-height: 36px;
        margin: 0 1px;
        padding: 12px 16px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        color: var(--lb-filter-btn-color);
        border: 1px solid var(--lb-filter-btn-border);
        border-radius: 25px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    @supports (backdrop-filter: blur(8px)) {
        .filter-btn {
            background: var(--lb-filter-btn-bg);
            backdrop-filter: blur(10px);
        }
    }

    .filter-btn::before {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
        transition: all 0.5s ease;
        content: '';
    }

    .filter-btn:hover::before {
        left: 100%;
    }

    .filter-btn:hover {
        color: var(--lb-filter-btn-hover-color);
        background: var(--lb-filter-btn-hover-bg);
        border-color: var(--lb-filter-btn-hover-border);
        box-shadow: var(--lb-filter-btn-hover-shadow);
        transform: translateY(-2px) scale(1.05);
    }

    .filter-btn.active {
        color: var(--lb-filter-btn-active-color);
        background: var(--lb-filter-btn-active-bg);
        border-color: var(--lb-filter-btn-active-border);
        box-shadow: var(--lb-filter-btn-active-shadow);
        transform: scale(1.03);
    }

    .filter-btn.active::before {
        left: 100%;
    }

    .filter-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    /* Leaderboard Table */
    .leaderboard-container {
        position: relative;
        overflow: hidden;
        border: 1px solid var(--lb-table-container-border);
        border-radius: 24px;
        box-shadow: var(--lb-table-container-shadow);
    }

    @supports (backdrop-filter: blur(8px)) {
        .leaderboard-container {
            background: var(--lb-table-container-bg);
            backdrop-filter: blur(20px);
        }
    }

    .leaderboard-container::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 2px;
        background: var(--lb-table-top-gradient);
        content: '';
    }

    .table-container {
        overflow-x: auto;
    }

    .leaderboard-table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
    }

    .leaderboard-table th {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 20px 16px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-align: left;
        text-transform: uppercase;
        color: var(--text-primary);
        border-bottom: 2px solid var(--lb-table-header-border);
        box-shadow: var(--lb-table-header-shadow);
    }

    @supports (backdrop-filter: blur(8px)) {
        .leaderboard-table th {
            background: var(--lb-table-header-bg);
            backdrop-filter: blur(10px);
        }
    }

    .leaderboard-table th.sortable {
        transition: all 0.2s ease;
        cursor: pointer;
        user-select: none;
    }

    .leaderboard-table th.sortable:hover {
        color: var(--accent-main);
        background: var(--lb-table-header-hover-bg);
        box-shadow: var(--lb-table-header-hover-shadow);
        transform: translateY(-1px);
    }

    .leaderboard-table th.sorted-asc::after {
        color: var(--accent-main);
        content: ' ↑';
    }

    .leaderboard-table th.sorted-desc::after {
        color: var(--accent-main);
        content: ' ↓';
    }

    .leaderboard-table td {
        padding: 20px 16px;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .leaderboard-table tbody tr {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .leaderboard-table tbody tr:hover {
        background: var(--lb-table-row-hover-bg);
        box-shadow: var(--lb-table-row-hover-shadow);
        transform: translateY(-2px);
    }

    .leaderboard-table tbody tr:hover td {
        color: var(--text-primary);
    }

    /* Model Column */
    .model-cell {
        display: flex;
        min-width: 180px;
        align-items: center;
        gap: 16px;
        transition: all 0.3s ease;
    }

    .model-logo {
        overflow: hidden;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .model-logo img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

    .model-cell:hover .model-logo {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.15) inset;
        transform: scale(1.1) rotate(5deg);
    }

    .model-cell-link {
        display: block;
        transition: all 0.3s ease;
    }

    .model-cell-link:hover {
        transform: translateX(2px);
    }

    .model-cell-link:hover .model-name {
        color: #8b5cf6 !important;
    }

    .model-info {
        min-width: 0;
    }

    .model-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .model-version {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* Model name column styling */
    .leaderboard-table td:nth-child(2) .model-info {
        min-width: 180px;
    }

    /* Size Badges */
    .size-badge {
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-align: center;
        text-transform: uppercase;
        border: 1px solid;
        border-radius: 16px;
        transition: all 0.3s ease;
    }

    @supports (backdrop-filter: blur(8px)) {
        .size-badge {
            backdrop-filter: blur(10px);
        }
    }

    .size-tiny {
        color: #10b981; 
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
    }

    .size-small {
        color: #06b6d4; 
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
        border-color: rgba(6, 182, 212, 0.3);
        box-shadow: 0 0 6px rgba(6, 182, 212, 0.2);
    }

    .size-medium {
        color: #f59e0b; 
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
        border-color: rgba(245, 158, 11, 0.3);
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
    }

    .size-large {
        color: #ef4444; 
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
    }

    /* Score Columns */
    .score-cell {
        position: relative;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
    }

    .score-high { 
        color: #10b981;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }

    .score-medium { 
        color: #f59e0b;
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    }

    .score-low { 
        color: #ef4444;
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    .score-na { 
        color: #6b7280;
        opacity: 0.7;
    }

    /* Price Columns */
    .price-cell {
        font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
        font-size: 13px;
        text-align: right;
    }

    .price-value {
        font-weight: 700;
        color: var(--text-primary);
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
    }

    .price-unit {
        font-size: 11px;
        color: var(--text-tertiary);
        opacity: 0.8;
    }

    /* Context Size */
    .context-cell {
        font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
        font-weight: 700;
        text-align: center;
        color: #8b5cf6;
        text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
    }

    /* Multi-column headers */
    .multi-header {
        text-align: center;
        border-right: 1px solid var(--border-secondary);
    }

    .sub-header {
        font-size: 12px;
        font-weight: 500;
        color: var(--text-tertiary);
    }

    /* Loading Animation */
    .loading-pulse {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }
    }

    /* Skeleton Loading */
    .skeleton {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }

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

        100% {
            background-position: -200% 0;
        }
    }

    /* Enhanced Responsive */
    @media (max-width: 1200px) {
        .container {
            padding: 0 16px;
        }
        
        .header h1 {
            font-size: 3rem;
        }
    }

    @media (max-width: 768px) {
        .filters-container {
            flex-direction: column;
            align-items: stretch;
            gap: 16px;
        }

        .filters-content {
            flex-direction: column;
            gap: 20px;
        }

        .filter-group {
            flex-direction: column;
            gap: 12px;
        }

        .header {
            padding: 30px 0 40px;
        }

        .header h1 {
            font-size: 2.5rem;
        }

        .header p {
            padding: 0 20px;
            font-size: 1rem;
        }

        .filters-section {
            margin-bottom: 30px;
            padding: 24px;
        }

        .leaderboard-table {
            font-size: 12px;
        }

        .leaderboard-table th,
        .leaderboard-table td {
            padding: 12px 8px;
        }

        .model-logo {
            width: 28px;
            height: 28px;
        }

        .model-cell {
            min-width: 140px;
            gap: 12px;
        }

        .size-badge {
            padding: 4px 8px;
            font-size: 10px;
        }
    }

    @media (max-width: 480px) {
        .header h1 {
            font-size: 2rem;
        }

        .filters-section {
            padding: 20px;
        }

        .leaderboard-table th,
        .leaderboard-table td {
            padding: 10px 6px;
        }

        .filter-btn {
            min-height: 32px;
            padding: 6px 12px;
            font-size: 12px;
        }
    }

    /* Smooth page transitions */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Icon Rating System */
    .rating-cell {
        padding: 20px 16px;
        text-align: center;
    }

    .rating-icons {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 2px;
        cursor: help;
    }

    .rating-icon {
        width: 18px;
        height: 18px;
        transition: all 0.3s ease;
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
    }

    .rating-icon-container {
        position: relative;
        display: inline-block;
        width: 18px;
        height: 18px;
    }

    .rating-icon-outline {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        color: var(--rating-icon-outline, rgba(228, 228, 231, 0.14));
    }

    .rating-icon-filled {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
    }

    .rating-icon-filled.half {
        clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }

    .rating-icon.half {
        position: relative;
        overflow: hidden;
    }

    .rating-icon.half::after {
        position: absolute;
        inset: 0 0 0 50%;
        background: transparent;
        border-left: 1px solid currentcolor;
        opacity: 0.3;
        content: '';
    }

    /* Intelligence (Lightbulb) Icons */
    .intelligence-icon {
        color: #10b981; /* Green */
    }

    .intelligence-icon.rating-2 {
        color: #f59e0b; /* Yellow */
    }

    .intelligence-icon.rating-1 {
        color: #ef4444; /* Red */
    }

    /* Speed (Lightning) Icons */
    .speed-icon {
        color: #10b981; /* Green */
    }

    .speed-icon.rating-2 {
        color: #f59e0b; /* Yellow */
    }

    .speed-icon.rating-1 {
        color: #ef4444; /* Red */
    }

    /* Creativity (Palette) Icons */
    .creativity-icon {
        color: #10b981; /* Green */
    }

    .creativity-icon.rating-2 {
        color: #f59e0b; /* Yellow */
    }

    .creativity-icon.rating-1 {
        color: #ef4444; /* Red */
    }

    /* Context (Book) Icons */
    .context-icon {
        color: #10b981; /* Green */
    }

    .context-icon.rating-2 {
        color: #f59e0b; /* Yellow */
    }

    .context-icon.rating-1 {
        color: #ef4444; /* Red */
    }

    /* Tooltip styles */
    .rating-tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        z-index: 1000;
        visibility: hidden;
        margin-bottom: 5px;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        color: var(--tooltip-color, #e4e4e7);
        border: 1px solid var(--tooltip-border, rgba(139, 92, 246, 0.2));
        border-radius: 8px;
        opacity: 0;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    @supports (backdrop-filter: blur(8px)) {
        .rating-tooltip {
            background: var(--tooltip-bg, rgba(26, 26, 26, 0.95));
            backdrop-filter: blur(10px);
        }
    }

    /* Price column tooltip specific styling */
    .price-cell .rating-tooltip {
        min-width: 200px;
        text-align: center;
    }

    .rating-tooltip::after {
        position: absolute;
        top: 100%;
        left: 50%;
        border: 5px solid transparent;
        transform: translateX(-50%);
        content: '';
        border-top-color: var(--tooltip-arrow, rgba(26, 26, 26, 0.95));
    }

    /* Tooltip positioned below for top rows */
    .rating-tooltip.bottom {
        top: 100%;
        bottom: auto;
        margin-top: 5px;
        margin-bottom: 0;
    }

    .rating-tooltip.bottom::after {
        top: -10px;
        border-bottom-color: var(--tooltip-arrow, rgba(26, 26, 26, 0.95));
        border-top-color: transparent;
    }

    .rating-icons:hover .rating-tooltip {
        visibility: visible;
        opacity: 1;
    }

    /* Focus states for accessibility */
    .filter-btn:focus {
        outline: 1px solid rgba(139, 92, 246, 0.5);
        outline-offset: 1px;
    }

    .leaderboard-table th.sortable:focus {
        outline: 2px solid rgba(139, 92, 246, 0.5);
        outline-offset: -2px;
    }

    /* Accessibility: уменьшение анимаций для пользователей с prefers-reduced-motion */
    @media (prefers-reduced-motion: reduce) {
        body::before {
            animation: none;
        }

        .header::before {
            animation: none;
        }

        .header h1 {
            animation: none;
        }

        .filter-btn::before {
            transition: none;
        }

        .filter-btn:hover::before {
            animation: none;
        }

        .loading-pulse {
            animation: none;
        }

        .skeleton {
            animation: none;
        }

        @keyframes float { /* Отключаем float анимацию */ }
        @keyframes shimmer { /* Отключаем shimmer анимацию */ }
        @keyframes gradientShift { /* Отключаем gradient анимацию */ }
    }

/* ====================================
   Centralized Glass Morphism Fallbacks
   ==================================== */

/* Fallbacks for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(8px)) {
    .header {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
    }
    
    .filters-section {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
    }
    
    .filter-btn {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
    }
    
    .leaderboard-container {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
    }
    
    .leaderboard-table th {
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-primary);
    }
    
    .rating-tooltip {
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
    }
}
