:root {
    --ant-primary: #1677ff;
    --ant-primary-hover: #4096ff;
    --ant-primary-active: #0958d9;
    --ant-primary-bg: #e6f4ff;
    --ant-primary-border: #91caff;
    --ant-text: rgba(0, 0, 0, 0.88);
    --ant-text-secondary: rgba(0, 0, 0, 0.65);
    --ant-text-tertiary: rgba(0, 0, 0, 0.45);
    --ant-text-quaternary: rgba(0, 0, 0, 0.25);
    --ant-border: #d9d9d9;
    --ant-border-secondary: #f0f0f0;
    --ant-fill: rgba(0, 0, 0, 0.15);
    --ant-fill-secondary: rgba(0, 0, 0, 0.06);
    --ant-fill-tertiary: rgba(0, 0, 0, 0.04);
    --ant-fill-quaternary: rgba(0, 0, 0, 0.02);
    --ant-bg: #ffffff;
    --ant-bg-layout: #f5f5f5;
    --ant-bg-elevated: #ffffff;
    --ant-success: #52c41a;
    --ant-warning: #faad14;
    --ant-error: #ff4d4f;
    --ant-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --ant-radius: 6px;
    --ant-radius-lg: 8px;
    --ant-shadow: 0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02), 0 2px 4px 0 rgba(0,0,0,0.02);
    --ant-shadow-md: 0 6px 16px 0 rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12), 0 9px 28px 8px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--ant-font);
    font-size: 14px;
    line-height: 1.5714;
    color: var(--ant-text);
    background: var(--ant-bg-layout);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ant-primary); text-decoration: none; }
a:hover { color: var(--ant-primary-hover); }

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

/* ── Header ── */
.header {
    background: var(--ant-bg);
    border-bottom: 1px solid var(--ant-border-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--ant-text);
    letter-spacing: -0.3px;
}

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

.nav-links { display: flex; gap: 0; height: 100%; }

.nav-links a {
    display: inline-flex;
    align-items: center;
    height: 64px;
    padding: 0 20px;
    color: var(--ant-text-secondary);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--ant-primary); }
.nav-links a::after { display: none; }

.nav-links a.active {
    color: var(--ant-primary);
    font-weight: 500;
    border-bottom-color: var(--ant-primary);
}

/* ── Search Hero ── */
.search-section {
    background: var(--ant-bg);
    padding: 64px 24px 56px;
    text-align: center;
    border-bottom: 1px solid var(--ant-border-secondary);
}

.search-container { max-width: 640px; margin: 0 auto; }

.search-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ant-text);
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: unset;
}

.search-subtitle {
    font-size: 16px;
    color: var(--ant-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto 20px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--ant-border);
    border-radius: var(--ant-radius-lg);
    font-size: 15px;
    color: var(--ant-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--ant-bg);
}

.search-input::placeholder { color: var(--ant-text-quaternary); }

.search-input:hover { border-color: var(--ant-primary-hover); }

.search-input:focus {
    border-color: var(--ant-primary);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--ant-primary);
    color: #fff;
    border: none;
    border-radius: var(--ant-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover { background: var(--ant-primary-hover); }

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-label {
    color: var(--ant-text-tertiary);
    font-size: 13px;
}

.suggestion-tag {
    height: 28px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--ant-text-secondary);
    background: var(--ant-bg);
    border: 1px solid var(--ant-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 26px;
}

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

/* ── Shared Page Layout ── */
.models-section,
.leaderboard-section {
    padding: 40px 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ant-text);
    text-align: center;
    margin-bottom: 4px;
    background: none;
    -webkit-text-fill-color: unset;
}

.page-subtitle {
    font-size: 14px;
    color: var(--ant-text-tertiary);
    text-align: center;
    margin-bottom: 28px;
}

.search-filters {
    max-width: 480px;
    margin: 0 auto 20px;
}

.quick-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

/* ── Model Cards Grid ── */
.models-grid, .models-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.model-card {
    background: var(--ant-bg);
    border: 1px solid var(--ant-border-secondary);
    border-radius: var(--ant-radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.model-card::before { display: none; }

.model-card:hover {
    border-color: var(--ant-primary-border);
    box-shadow: var(--ant-shadow-md);
    transform: none;
}

.model-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.model-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ant-text);
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.model-author {
    font-size: 13px;
    color: var(--ant-text-tertiary);
    margin: 2px 0 0;
}

.model-description {
    color: var(--ant-text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ant-text-tertiary);
    margin: 0;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ant-text-tertiary);
    font-weight: 400;
}

.stat svg { opacity: 0.55; }

.model-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.detail-chip {
    display: inline-block;
    height: 22px;
    line-height: 20px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--ant-text-secondary);
    background: var(--ant-fill-tertiary);
    border: 1px solid var(--ant-border-secondary);
    border-radius: 4px;
}

.model-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    height: 22px;
    line-height: 20px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--ant-primary);
    background: var(--ant-primary-bg);
    border: 1px solid var(--ant-primary-border);
    border-radius: 4px;
    font-weight: 400;
    transition: none;
}

.tag:hover { transform: none; }

.tag-more {
    display: inline-block;
    height: 22px;
    line-height: 20px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--ant-text-tertiary);
    background: var(--ant-fill-quaternary);
    border: 1px solid var(--ant-border-secondary);
    border-radius: 4px;
}

/* ── Leaderboard ── */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ant-border-secondary);
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--ant-text-secondary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    border-radius: 0;
}

.tab-btn:hover { color: var(--ant-primary); }

.tab-btn.active {
    color: var(--ant-primary);
    font-weight: 500;
    border-bottom-color: var(--ant-primary);
    background: none;
}

.leaderboard-content { max-width: 900px; margin: 0 auto; }

.leaderboard-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ant-bg);
    border: 1px solid var(--ant-border-secondary);
    border-radius: var(--ant-radius-lg);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.leaderboard-item:hover {
    border-color: var(--ant-primary-border);
    box-shadow: var(--ant-shadow);
    transform: none;
}

.rank {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ant-text-tertiary);
    background: var(--ant-fill-tertiary);
    border-radius: var(--ant-radius);
    flex-shrink: 0;
}

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

.leaderboard-item .model-header {
    margin-bottom: 4px;
}

.leaderboard-item .model-name {
    font-size: 14px;
}

.leaderboard-item .model-description {
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
    font-size: 13px;
}

.leaderboard-item .model-stats {
    gap: 16px;
}

.model-tags-inline {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.tag-small {
    display: inline-block;
    height: 20px;
    line-height: 18px;
    padding: 0 6px;
    font-size: 12px;
    color: var(--ant-primary);
    background: var(--ant-primary-bg);
    border: 1px solid var(--ant-primary-border);
    border-radius: 4px;
}

/* ── Results Section ── */
.results-section { padding: 32px 24px; }

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ant-text);
    text-align: left;
    margin-bottom: 0;
}

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

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

/* ── Load More ── */
.load-more-container { text-align: center; padding: 8px 0; }

.load-more-btn {
    height: 36px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ant-text-secondary);
    background: var(--ant-bg);
    border: 1px solid var(--ant-border);
    border-radius: var(--ant-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    color: var(--ant-primary);
    border-color: var(--ant-primary);
    background: var(--ant-bg);
    transform: none;
    box-shadow: none;
}

/* ── Loading ── */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--ant-text-tertiary);
    font-size: 14px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ant-border);
    border-top-color: var(--ant-primary);
    border-radius: 50%;
    animation: ant-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* ── Error ── */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: var(--ant-radius-lg);
    padding: 12px 16px;
    color: var(--ant-error);
    font-size: 14px;
}

.error-message p { margin: 0; color: var(--ant-text); }

/* ── Footer ── */
.footer {
    background: var(--ant-bg);
    padding: 32px 24px 24px;
    border-top: 1px solid var(--ant-border-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ant-text);
    margin-bottom: 4px;
    background: none;
    -webkit-text-fill-color: unset;
}

.footer-info p { color: var(--ant-text-tertiary); font-size: 13px; }

.footer-links h4, .footer-tech h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ant-text);
    margin-bottom: 8px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 4px; }

.footer-links a {
    color: var(--ant-text-tertiary);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--ant-primary); }

.footer-tech p {
    color: var(--ant-text-tertiary);
    font-size: 13px;
    margin-bottom: 2px;
}

/* ── Model Detail Page (generated by script.js) ── */
.model-detail-section {
    padding: 24px;
    min-height: calc(100vh - 64px);
}

.model-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    background: var(--ant-bg);
    border-radius: var(--ant-radius-lg);
    box-shadow: var(--ant-shadow-md);
    border: 1px solid var(--ant-border-secondary);
    z-index: 100;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ant-border-secondary);
    background: var(--ant-bg);
    border-radius: var(--ant-radius-lg) var(--ant-radius-lg) 0 0;
    color: var(--ant-text);
}

.nav-header h4 { font-size: 14px; font-weight: 600; margin: 0; }

.nav-toggle {
    background: none;
    border: none;
    color: var(--ant-text-tertiary);
    cursor: pointer;
    display: none;
}

.nav-content { padding: 4px 0; }

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--ant-text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.nav-item:hover {
    color: var(--ant-primary);
    background: var(--ant-fill-quaternary);
    transform: none;
}

.nav-item.active {
    color: var(--ant-primary);
    background: var(--ant-primary-bg);
    border-left-color: var(--ant-primary);
    font-weight: 500;
}

.model-content { margin-left: 280px; max-width: calc(100vw - 320px); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: var(--ant-bg);
    color: var(--ant-text-secondary);
    border: 1px solid var(--ant-border);
    border-radius: var(--ant-radius);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--ant-primary);
    border-color: var(--ant-primary);
    background: var(--ant-bg);
    transform: none;
}

.model-detail-article {
    max-width: 860px;
    margin: 0 auto;
    background: var(--ant-bg);
    border-radius: var(--ant-radius-lg);
    border: 1px solid var(--ant-border-secondary);
    overflow: hidden;
}

.model-detail-article .model-header {
    padding: 24px;
    background: var(--ant-bg);
    border-bottom: 1px solid var(--ant-border-secondary);
}

.model-title-section h1.model-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ant-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.model-detail-article .model-author { font-size: 14px; color: var(--ant-text-tertiary); }
.model-detail-article .model-author a { color: var(--ant-primary); font-weight: 400; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    background: var(--ant-primary);
    color: #fff;
    border: none;
    border-radius: var(--ant-radius);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: none;
}

.btn-primary:hover { background: var(--ant-primary-hover); transform: none; box-shadow: none; }

.model-stats-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ant-border-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--ant-fill-quaternary);
    border-radius: var(--ant-radius);
}

.stat-card:hover { transform: none; }

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

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ant-text);
    margin-bottom: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--ant-text-tertiary);
    text-transform: none;
    letter-spacing: 0;
}

.model-description-section,
.model-tags-section,
.model-files-section,
.model-usage-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ant-border-secondary);
}

.model-usage-section { border-bottom: none; }

.model-description-section h2,
.model-tags-section h2,
.model-files-section h2,
.model-usage-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ant-text);
    margin-bottom: 12px;
}

.description-content {
    line-height: 1.7;
    color: var(--ant-text);
    font-size: 14px;
}

/* ── README ── */
.readme-content { line-height: 1.7; color: var(--ant-text); font-size: 14px; max-width: none; }
.readme-content h1 { font-size: 22px; font-weight: 600; color: var(--ant-text); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ant-border-secondary); }
.readme-content h2 { font-size: 18px; font-weight: 600; color: var(--ant-text); margin: 24px 0 10px; }
.readme-content h3 { font-size: 16px; font-weight: 600; color: var(--ant-text); margin: 20px 0 8px; }
.readme-content h4 { font-size: 14px; font-weight: 600; color: var(--ant-text-secondary); margin: 16px 0 6px; }
.readme-content h5, .readme-content h6 { font-size: 14px; font-weight: 500; color: var(--ant-text-tertiary); margin: 12px 0 6px; text-transform: none; letter-spacing: 0; }
.readme-content p { margin: 8px 0; line-height: 1.7; text-align: left; }
.readme-content ul, .readme-content ol { margin: 8px 0; padding-left: 24px; }
.readme-content ul { list-style-type: disc; }
.readme-content ol { list-style-type: decimal; }
.readme-content li { margin: 4px 0; line-height: 1.7; }

.readme-content code {
    padding: 2px 6px;
    font-size: 13px;
    background: var(--ant-fill-tertiary);
    border: 1px solid var(--ant-border-secondary);
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--ant-text);
    font-weight: 400;
}

.readme-content .code-block {
    background: #fafafa;
    border: 1px solid var(--ant-border-secondary);
    border-radius: var(--ant-radius);
    padding: 12px 16px;
    margin: 12px 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
}

.readme-content pre {
    background: #fafafa;
    border: 1px solid var(--ant-border-secondary);
    border-radius: var(--ant-radius);
    padding: 12px 16px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    box-shadow: none;
    color: var(--ant-text);
}

.readme-content a { color: var(--ant-primary); font-weight: 400; }
.readme-content a:hover { color: var(--ant-primary-hover); }
.readme-content strong { font-weight: 600; color: var(--ant-text); }
.readme-content em { color: var(--ant-text-secondary); }

.readme-content blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    background: var(--ant-fill-quaternary);
    border-left: 4px solid var(--ant-border);
    border-radius: 0;
    font-style: normal;
    position: relative;
}

.readme-content blockquote::before { display: none; }

.readme-content hr {
    border: none;
    height: 1px;
    background: var(--ant-border-secondary);
    margin: 24px 0;
}

.readme-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.readme-table td, .readme-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ant-border-secondary);
    border-right: none;
    text-align: left;
}

.readme-table tr:last-child td { border-bottom: none; }
.readme-table tr:nth-child(even) { background: var(--ant-fill-quaternary); }

.readme-image { margin: 16px 0; text-align: center; }
.readme-image img { max-width: 100%; border-radius: var(--ant-radius); box-shadow: none; }
.readme-image img:hover { transform: none; }
.readme-image-inline { display: inline-block; margin: 4px; }
.readme-image-inline img { max-width: 100%; max-height: 300px; border-radius: var(--ant-radius); box-shadow: none; }

/* ── Tags ── */
.tags-container { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-item {
    display: inline-block;
    height: 24px;
    line-height: 22px;
    padding: 0 10px;
    font-size: 12px;
    background: var(--ant-primary-bg);
    color: var(--ant-primary);
    border: 1px solid var(--ant-primary-border);
    border-radius: 4px;
}

.tag-item:hover { transform: none; }

/* ── Files ── */
.files-container {
    border: 1px solid var(--ant-border-secondary);
    border-radius: var(--ant-radius-lg);
    overflow: hidden;
}

.files-count { font-size: 14px; color: var(--ant-text-tertiary); font-weight: 400; }

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ant-border-secondary);
    transition: background 0.15s;
}

.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--ant-fill-quaternary); }

.file-info { flex: 1; }

.file-name {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    color: var(--ant-text);
    font-weight: 500;
    margin-bottom: 4px;
}

.file-metadata { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.file-size {
    font-size: 12px;
    color: var(--ant-text-tertiary);
    background: var(--ant-fill-tertiary);
    padding: 1px 6px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
}

.file-type {
    font-size: 11px;
    color: var(--ant-primary);
    background: var(--ant-primary-bg);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: var(--ant-bg);
    color: var(--ant-primary);
    border: 1px solid var(--ant-primary);
    border-radius: var(--ant-radius);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--ant-primary-bg);
    transform: none;
}

/* ── Misc ── */
.mobile-nav-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    background: var(--ant-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ant-shadow-md);
    cursor: pointer;
    z-index: 101;
}

.advanced-search-panel { display: none; }
.about-section { padding: 40px 24px; max-width: 800px; margin: 0 auto; }
.about-content { line-height: 1.7; font-size: 14px; }
.about-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.about-content ul { list-style: none; padding: 0; }
.about-content li { padding: 4px 0; }

.usage-content { line-height: 1.7; }
.usage-content ul { margin: 8px 0; padding: 0; list-style: none; }
.usage-content li { margin: 6px 0; display: flex; align-items: flex-start; gap: 6px; }
.usage-content h3 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
.tools-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.tool-item {
    height: 28px;
    line-height: 26px;
    padding: 0 10px;
    background: var(--ant-bg);
    color: var(--ant-text-secondary);
    border: 1px solid var(--ant-border);
    border-radius: var(--ant-radius);
    font-size: 13px;
    transition: all 0.2s;
}

.tool-item:hover { color: var(--ant-primary); border-color: var(--ant-primary); }

.paragraph-break { display: block; height: 8px; }
.loading-text { display: flex; align-items: center; gap: 8px; color: var(--ant-text-tertiary); }

.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0,0,0,0.45); }
.modal-content { background: var(--ant-bg); margin: 10vh auto; padding: 24px; border-radius: var(--ant-radius-lg); width: 90%; max-width: 800px; max-height: 80vh; overflow-y: auto; }
.modal-close { color: var(--ant-text-tertiary); float: right; font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ant-text); }

.no-results { text-align: center; padding: 48px; color: var(--ant-text-tertiary); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-container { padding: 0 16px; }
    .nav-links a { padding: 0 12px; font-size: 13px; }
    .search-section { padding: 40px 16px 32px; }
    .search-title { font-size: 24px; }
    .models-grid, .models-content { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 16px; }
    .leaderboard-item { flex-direction: column; }
    .model-content { margin-left: 0; max-width: 100%; }
    .model-nav { display: none; }
    .mobile-nav-btn { display: flex; }
    .model-detail-article .model-header { flex-direction: column; gap: 12px; }
    .model-title-section h1.model-title { font-size: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .file-item { flex-direction: column; align-items: stretch; gap: 8px; }
    .results-header { flex-direction: column; gap: 8px; }
    .leaderboard-tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1; min-width: 100px; }
}

@media (max-width: 1200px) {
    .model-nav { left: 16px; width: 220px; }
    .model-content { margin-left: 252px; max-width: calc(100vw - 272px); }
}

@media (max-width: 480px) {
    .search-input { font-size: 14px; height: 40px; }
    .search-btn { width: 32px; height: 32px; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
