/* =============================================================================
   MMA.SOCIAL - Stats Section Styles
   Covers: Stats Hub, Compare, Divisions, Finish Rates, Leaderboards
   ============================================================================= */


/* ===========================================
   STATS HUB STYLES - ANALYTICS FOCUSED
   =========================================== */
.stats-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent-gold);
}
.breadcrumb .separator {
    margin: 0 8px;
}

/* Header */
.stats-header {
    text-align: center;
    margin-bottom: 32px;
}
.stats-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.stats-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Labels */
.section-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Hero Stats */
.hero-stats {
    margin-bottom: 32px;
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hero-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.hero-stat-card.highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.02));
    border-color: rgba(34, 197, 94, 0.3);
}
.hero-stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}
.hero-stat-card.highlight .hero-stat-value {
    color: #22c55e;
}
.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}
.hero-stat-note {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Finish Breakdown */
.finish-breakdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}
.finish-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}
.finish-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.finish-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.finish-bar-label {
    font-weight: 600;
    font-size: 0.95rem;
}
.finish-bar-pct {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
}
.finish-bar-track {
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
}
.finish-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}
.finish-bar-fill.ko {
    background: linear-gradient(90deg, #ef4444, #f97316);
}
.finish-bar-fill.sub {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}
.finish-bar-fill.dec {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.finish-bar-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.section-link {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tools Grid */
.stats-tools {
    margin-bottom: 32px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}
.tool-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}
.tool-card.featured {
    background: linear-gradient(135deg, rgba(232, 184, 48, 0.08), rgba(232, 184, 48, 0.02));
    border-color: rgba(232, 184, 48, 0.25);
}
.tool-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
}
.tool-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.tool-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.tool-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.preview-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
}
.preview-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.preview-stat.ko {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.preview-stat.sub {
    background: rgba(139, 92, 246, 0.15);
    color: #a855f7;
}
.preview-stat.dec {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.tool-cta {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Division Quick View */
.division-quick {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header .section-label {
    margin-bottom: 0;
}
.see-all {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
}
.division-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.div-bar-item {
    display: grid;
    grid-template-columns: 130px 1fr 50px;
    align-items: center;
    gap: 12px;
}
.div-bar-item.womens .div-bar-name {
    color: #a855f7;
}
.div-bar-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}
.div-bar-track {
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}
.div-bar-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 4px;
}
.div-bar-item.womens .div-bar-fill {
    background: #a855f7;
}
.div-bar-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* Cross Link */
.cross-link {
    margin-bottom: 32px;
}
.cross-link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.cross-link-icon {
    font-size: 2.5rem;
}
.cross-link-content {
    flex: 1;
}
.cross-link-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.cross-link-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Stats Hub scoped .btn / .btn-secondary (avoids conflict with site.css) */
.stats-hub .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.stats-hub .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.stats-hub .btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* SEO Content */
.seo-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.seo-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.seo-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.seo-content ul {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    margin-bottom: 12px;
}
.seo-content li {
    margin-bottom: 8px;
}
.seo-content strong {
    color: var(--text-primary);
}
.seo-content a {
    color: var(--accent-gold);
}

/* ===========================================
   STATS HUB - MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-hub {
        padding: 16px;
    }
    .stats-header h1 {
        font-size: 1.6rem;
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hero-stat-card {
        padding: 16px 12px;
    }
    .hero-stat-value {
        font-size: 1.4rem;
    }
    .tool-card {
        padding: 18px;
    }
    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
    .tool-content h3 {
        font-size: 1.05rem;
    }
    .div-bar-item {
        grid-template-columns: 100px 1fr 40px;
        gap: 8px;
    }
    .div-bar-name {
        font-size: 0.75rem;
    }
    .div-bar-track {
        height: 16px;
    }
    .cross-link-card {
        flex-direction: column;
        text-align: center;
    }
}


/* ===========================================
   COMPARE PAGE STYLES
   =========================================== */
.compare-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.cmp-header {
    text-align: center;
    margin-bottom: 32px;
}
.cmp-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.cmp-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Selection Section */
.cmp-selection {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.cmp-select-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}
.cmp-select-box {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cmp-select-box.has-fighter {
    border-style: solid;
    border-color: var(--accent-gold);
}
.cmp-vs-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.cmp-search-wrap {
    width: 100%;
    position: relative;
}
.cmp-search-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}
.cmp-search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.cmp-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.cmp-search-results.active {
    display: block;
}
.cmp-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}
.cmp-search-item:last-child {
    border-bottom: none;
}
.cmp-search-item:hover {
    background: var(--bg-tertiary);
}
.cmp-search-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
}
.cmp-search-item-info {
    flex: 1;
}
.cmp-search-item-name {
    font-weight: 600;
    display: block;
}
.cmp-search-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Selected Fighter */
.cmp-selected-fighter {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.cmp-sf-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cmp-sf-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.cmp-sf-info {
    flex: 1;
    min-width: 0;
}
.cmp-sf-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}
.cmp-sf-record {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-gold);
    font-size: 0.9rem;
}
.cmp-sf-division {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cmp-change-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.cmp-change-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Quick Select */
.cmp-quick-select {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.cmp-quick-select h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text-secondary);
}
.cmp-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.cmp-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.cmp-quick-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}
.cmp-qb-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cmp-qb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.cmp-qb-name {
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Instructions */
.cmp-instructions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.cmp-inst-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.cmp-instructions h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.cmp-instructions p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.cmp-inst-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.cmp-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.step-num {
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.step-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Results Section */
.cmp-results {
    margin-bottom: 24px;
}

/* Head to Head */
.cmp-h2h-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.cmp-h2h-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}
.cmp-h2h-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.cmp-h2h-fighter {
    text-align: center;
}
.cmp-h2h-fighter.winner .cmp-h2h-wins {
    color: #22c55e;
}
.cmp-h2h-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.cmp-h2h-wins {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}
.cmp-h2h-middle {
    padding: 0 20px;
}
.cmp-h2h-draws {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cmp-h2h-dash {
    font-size: 2rem;
    color: var(--text-muted);
}
.cmp-h2h-fights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cmp-h2h-fight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.cmp-h2h-fight:hover {
    background: var(--bg-hover);
}
.cmp-h2h-result {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
}
.cmp-h2h-result.win { background: #22c55e; color: white; }
.cmp-h2h-result.loss { background: #ef4444; color: white; }
.cmp-h2h-result.draw { background: var(--bg-card); color: var(--text-muted); }
.cmp-h2h-fight-info {
    flex: 1;
}
.cmp-h2h-event {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}
.cmp-h2h-method {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cmp-h2h-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Radar Chart */
.cmp-chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.cmp-chart-section h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-align: center;
}
.cmp-radar-container {
    max-width: 450px;
    margin: 0 auto;
}
.cmp-chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 16px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.legend-item.f1 .legend-dot { background: #E8B830; }
.legend-item.f2 .legend-dot { background: #3b82f6; }
.cmp-no-ratings {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* Stats Table */
.cmp-stats-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.cmp-stats-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}
.cmp-stats-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cmp-stats-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cmp-stats-row.header {
    padding: 16px 0;
    border-bottom: 2px solid var(--border);
}
.cmp-stat-f1, .cmp-stat-f2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cmp-stat-f1 {
    justify-content: flex-end;
    text-align: right;
}
.cmp-stat-f2 {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: left;
}
.cmp-stat-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cmp-stat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.cmp-stat-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}
.cmp-stat-name:hover {
    color: var(--accent-gold);
}
.cmp-stat-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.cmp-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
}
.cmp-stats-row:not(.header) .cmp-stat-f1 .cmp-stat-val,
.cmp-stats-row:not(.header) .cmp-stat-f2 .cmp-stat-val {
    width: 100%;
}
.cmp-stats-row:not(.header) .cmp-stat-f1 {
    justify-content: flex-end;
}
.cmp-stats-row:not(.header) .cmp-stat-f2 {
    justify-content: flex-start;
    flex-direction: row;
}
.cmp-stat-val.better {
    color: #22c55e;
    font-weight: 600;
}
.cmp-stat-val.worse {
    color: var(--text-muted);
}
.cmp-stats-row.divider {
    border-bottom: none;
    padding: 8px 0 4px;
}
.cmp-stats-row.divider .cmp-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Actions */
.cmp-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cmp-action-btn {
    padding: 14px 28px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cmp-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 184, 48, 0.3);
}
.cmp-action-btn.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

/* Compare page SEO Content overrides */
.compare-page .seo-content h3 { font-size: 1rem; margin: 16px 0 10px; }

/* ===========================================
   COMPARE PAGE - MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .compare-page { padding: 16px; }
    .cmp-header h1 { font-size: 1.5rem; }
    .cmp-select-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cmp-vs-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .cmp-quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cmp-inst-steps {
        flex-direction: column;
        gap: 12px;
    }
    .cmp-h2h-score {
        gap: 16px;
    }
    .cmp-h2h-wins {
        font-size: 2rem;
    }
    .cmp-stats-row {
        grid-template-columns: 1fr 80px 1fr;
    }
    .cmp-stat-photo {
        width: 32px;
        height: 32px;
    }
    .cmp-stat-name {
        font-size: 0.85rem;
    }
    .cmp-stat-label {
        font-size: 0.75rem;
    }
    .cmp-stat-val {
        font-size: 0.9rem;
    }
    .cmp-actions {
        flex-direction: column;
    }
    .cmp-action-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cmp-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cmp-chart-legend {
        flex-direction: column;
        gap: 8px;
    }
}


/* ===========================================
   DIVISIONS PAGE STYLES
   =========================================== */
.divisions-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

.div-header {
    text-align: center;
    margin-bottom: 32px;
}
.div-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.div-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Sections */
.div-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}
.div-section h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Chart */
.div-chart-container {
    height: 350px;
    max-width: 100%;
}

/* Division Cards Grid */
.div-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.div-cards-grid.women {
    grid-template-columns: repeat(4, 1fr);
}

.div-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s;
    overflow: hidden;
    min-width: 0;
}
.div-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}
.div-card.women {
    border-color: rgba(168, 85, 247, 0.3);
}
.div-card.women:hover {
    border-color: #a855f7;
}

.div-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.div-icon {
    font-size: 1.8rem;
}
.div-title-wrap h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.div-weight {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Top Fighter */
.div-top-fighter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.div-top-fighter:hover {
    background: var(--bg-hover);
}
.div-tf-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.div-tf-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.div-tf-info {
    flex: 1;
    min-width: 0;
}
.div-tf-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.div-tf-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.div-tf-elo {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
}

/* Card Stats */
.div-card-stats {
    margin-bottom: 14px;
}
.div-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 4px 0;
}
.div-stat-label {
    color: var(--text-muted);
}
.div-stat-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}
.div-stat-active {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
}

/* Finish Rates */
.div-finish-rates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 14px;
}
.div-rate-item {
    text-align: center;
    padding: 6px 2px;
    background: var(--bg-card);
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}
.rate-pct {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.rate-pct.finish { color: #22c55e; }
.rate-pct.ko { color: #ef4444; }
.rate-pct.sub { color: #a78bfa; }
.rate-pct.dec { color: #3b82f6; }
.rate-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* View Link */
.div-view-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.div-view-link:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Table */
.div-table-wrapper {
    overflow-x: auto;
}
.div-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.div-table th, .div-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.div-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}
.div-table tbody tr:hover {
    background: var(--bg-tertiary);
}
.div-name-cell {
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.div-table-icon {
    font-size: 1.1rem;
}
.finish-cell { color: #22c55e; font-weight: 600; }
.ko-cell { color: #ef4444; }
.sub-cell { color: #a78bfa; }
.dec-cell { color: #3b82f6; }

/* Related Links */
.div-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.div-related a {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.div-related a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Divisions page SEO Content overrides */
.divisions-page .seo-content h3 { font-size: 1rem; margin: 16px 0 10px; }

/* ===========================================
   DIVISIONS PAGE - MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 1100px) {
    .div-cards-grid, .div-cards-grid.women {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .div-cards-grid, .div-cards-grid.women {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .divisions-page { padding: 16px; }
    .div-header h1 { font-size: 1.5rem; }
    .div-cards-grid, .div-cards-grid.women {
        grid-template-columns: 1fr;
    }
    .div-section {
        padding: 16px;
    }
    .div-card {
        padding: 14px;
    }
    .div-chart-container { height: 280px; }
    .div-finish-rates {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }
    .rate-pct {
        font-size: 0.75rem;
    }
    .rate-label {
        font-size: 0.5rem;
    }
    .div-table { font-size: 0.8rem; }
    .div-table th, .div-table td { padding: 8px 6px; }
    .div-name-cell { font-size: 0.75rem; }
    .div-related {
        flex-direction: column;
    }
}


/* ===========================================
   FINISH RATES PAGE STYLES
   =========================================== */
.finish-rates-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.fr-header {
    text-align: center;
    margin-bottom: 32px;
}
.fr-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.fr-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Section Styles */
.fr-section, .fr-overall-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.fr-section h2, .fr-overall-section h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Stats Grid */
.fr-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.fr-stat-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}
.fr-stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}
.fr-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.fr-stat-card.ko .fr-stat-value { color: #ef4444; }
.fr-stat-card.sub .fr-stat-value { color: #a78bfa; }
.fr-stat-card.dec .fr-stat-value { color: #3b82f6; }
.fr-stat-card.finish .fr-stat-value { color: #22c55e; }
.fr-stat-card.total .fr-stat-value { color: var(--accent-gold); }
.fr-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}
.fr-stat-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* Secondary Stats */
.fr-secondary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.fr-secondary-card {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.fr-sec-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 4px;
}
.fr-sec-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.fr-sec-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Donut Chart */
.fr-donut-container {
    max-width: 300px;
    margin: 0 auto;
}

/* Charts */
.fr-chart-container {
    height: 300px;
    margin-bottom: 24px;
}

/* Table */
.fr-table-wrapper {
    overflow-x: auto;
}
.fr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.fr-table th, .fr-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.fr-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}
.fr-table tbody tr:hover {
    background: var(--bg-tertiary);
}
.year-cell { font-weight: 600; }

/* Division Grid */
.fr-division-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.fr-division-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.fr-division-card.heavyweight {
    border-color: rgba(239, 68, 68, 0.3);
}
.fr-division-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.fr-div-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.fr-div-finish {
    color: #22c55e;
    font-weight: 600;
}
.fr-div-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fr-div-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 45px;
    gap: 8px;
    align-items: center;
}
.bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.bar-track {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 4px;
}
.bar-fill.ko { background: linear-gradient(90deg, #ef4444, #dc2626); }
.bar-fill.sub { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.bar-fill.dec { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.bar-value {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* Recent Finishes */
.fr-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fr-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.fr-recent-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(4px);
}
.fr-recent-method {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.fr-recent-method.ko {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
.fr-recent-method.sub {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}
.fr-recent-info {
    flex: 1;
    min-width: 0;
}
.fr-recent-winner {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}
.fr-recent-vs {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.fr-recent-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.fr-recent-event {
    text-align: right;
    min-width: 120px;
}
.fr-recent-event-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.fr-recent-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Related Links */
.fr-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.fr-related a {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.fr-related a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Finish Rates page SEO Content overrides */
.finish-rates-page .seo-content h3 { font-size: 1rem; margin: 16px 0 10px; }

/* ===========================================
   FINISH RATES PAGE - MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
    .fr-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .fr-division-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fr-secondary-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .finish-rates-page { padding: 16px; }
    .fr-header h1 { font-size: 1.5rem; }
    .fr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fr-secondary-stats {
        grid-template-columns: 1fr;
    }
    .fr-stat-card { padding: 12px; }
    .fr-stat-value { font-size: 1.2rem; }
    .fr-division-grid {
        grid-template-columns: 1fr;
    }
    .fr-chart-container { height: 250px; }
    .fr-recent-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .fr-recent-event {
        width: 100%;
        text-align: left;
    }
    .fr-table { font-size: 0.8rem; }
    .fr-table th, .fr-table td { padding: 8px 6px; }
}


/* ===========================================
   LEADERBOARDS PAGE STYLES
   =========================================== */
.leaderboards-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.lb-header {
    text-align: center;
    margin-bottom: 24px;
}
.lb-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.lb-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Category Tabs */
.lb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.lb-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.lb-tab:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}
.lb-tab.active {
    background: linear-gradient(135deg, rgba(232, 184, 48, 0.15), rgba(232, 184, 48, 0.05));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.lb-tab-icon {
    font-size: 1rem;
}
.lb-tab-label {
    display: inline;
}

/* Filter Bar */
.lb-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.lb-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-filter-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.lb-filter-form select {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
}
.lb-result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Category Header */
.lb-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.lb-cat-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
}
.lb-cat-info h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.lb-cat-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Leaderboard List */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.lb-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 12px;
}
.lb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.lb-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.lb-item.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
    border-color: rgba(255, 215, 0, 0.3);
}
.lb-item.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.02));
    border-color: rgba(192, 192, 192, 0.3);
}
.lb-item.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.02));
    border-color: rgba(205, 127, 50, 0.3);
}

/* Rank Badge */
.lb-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.lb-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}
.lb-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}
.lb-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

/* Photo */
.lb-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.lb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.lb-photo span {
    font-size: 1.3rem;
}

/* Fighter Info */
.lb-fighter-info {
    flex: 1;
    min-width: 0;
}
.lb-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.lb-record {
    font-family: 'JetBrains Mono', monospace;
}

/* Stat Display */
.lb-stat-display {
    text-align: right;
    min-width: 100px;
}
.lb-stat-main {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
}
.lb-stat-main.positive {
    color: #22c55e;
}
.lb-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lb-stat-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.lb-stat-change {
    display: block;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}
.lb-stat-change.positive {
    color: #22c55e;
}
.lb-stat-change.negative {
    color: #ef4444;
}

/* Related Links */
.lb-related {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.lb-related h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}
.lb-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.lb-related-links a {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.lb-related-links a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Leaderboards page SEO Content overrides */
.leaderboards-page .seo-content {
    border-radius: 12px;
}
.leaderboards-page .seo-content h3 {
    font-size: 1rem;
    margin: 16px 0 10px;
}

/* ===========================================
   LEADERBOARDS PAGE - MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .leaderboards-page {
        padding: 16px;
    }
    .lb-header h1 {
        font-size: 1.5rem;
    }
    .lb-tabs {
        gap: 6px;
    }
    .lb-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .lb-tab-label {
        display: none;
    }
    .lb-tab-icon {
        font-size: 1.2rem;
    }
    .lb-tab.active .lb-tab-label {
        display: inline;
    }
    .lb-filter-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .lb-category-header {
        flex-direction: column;
        text-align: center;
    }
    .lb-item {
        padding: 12px;
        gap: 10px;
    }
    .lb-photo {
        width: 40px;
        height: 40px;
    }
    .lb-name {
        font-size: 0.9rem;
    }
    .lb-stat-display {
        min-width: 80px;
    }
    .lb-stat-main {
        font-size: 1.1rem;
    }
    .lb-related-links {
        flex-direction: column;
    }
    .lb-related-links a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lb-rank {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .lb-meta {
        flex-direction: column;
        gap: 2px;
    }
}

/* =============================================================================
   2026 GLASSMORPHISM OVERHAUL
   ============================================================================= */

/* Glass Card Base */
.glass-card {
    background: rgba(16, 16, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(232, 184, 48, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Stats Hub 2026 Redesign */
.stats-hub .hero-stat-card {
    background: rgba(16, 16, 24, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.stats-hub .hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stats-hub .hero-stat-card:hover::before {
    opacity: 1;
}
.stats-hub .hero-stat-card.highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 16, 24, 0.6));
    border-color: rgba(34, 197, 94, 0.2);
}
.stats-hub .hero-stat-card.highlight::before {
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

/* Category Grid */
.stats-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.stats-category-group {
    background: rgba(16, 16, 24, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.stats-category-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}
.stats-category-group.striking::before {
    background: linear-gradient(90deg, #ef4444, #f97316);
}
.stats-category-group.grappling::before {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}
.stats-category-group.rankings::before {
    background: linear-gradient(90deg, #E8B830, #f59e0b);
}
.stats-category-group.tools::before {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.stats-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.stats-group-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
}
.stats-category-group.striking .stats-group-icon {
    background: rgba(239, 68, 68, 0.15);
}
.stats-category-group.grappling .stats-group-icon {
    background: rgba(139, 92, 246, 0.15);
}
.stats-category-group.rankings .stats-group-icon {
    background: rgba(232, 184, 48, 0.15);
}
.stats-category-group.tools .stats-group-icon {
    background: rgba(59, 130, 246, 0.15);
}
.stats-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-group-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stats-group-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.stats-group-link:hover {
    background: rgba(232, 184, 48, 0.08);
    border-color: rgba(232, 184, 48, 0.2);
    color: var(--text-primary);
    transform: translateX(4px);
}
.stats-group-link .link-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.stats-group-link:hover .link-arrow {
    transform: translateX(4px);
    color: var(--accent-gold);
}
.stats-group-link .link-preview {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

/* Glow stat values */
.glow-stat {
    text-shadow: 0 0 20px rgba(232, 184, 48, 0.3);
}

/* Animated gradient border */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stats hub finish bars glassmorphism */
.stats-hub .finish-breakdown {
    background: rgba(16, 16, 24, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
}

/* =============================================================================
   STATS LEADERBOARD PAGES (Standalone)
   most-strikes, most-takedowns, most-knockdowns, control-time
   ============================================================================= */
.stats-leaderboard-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.sl-header {
    text-align: center;
    margin-bottom: 28px;
}
.sl-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sl-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Division Filter */
.sl-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: rgba(16, 16, 24, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.sl-filter-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.sl-filter-form select {
    flex: 1;
    max-width: 280px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}
.sl-filter-form select:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.sl-filter-form button {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-gold), #B8960C);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.sl-filter-form button:hover {
    transform: scale(1.05);
}

/* Result Count */
.sl-result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Empty State */
.sl-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    background: rgba(16, 16, 24, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}
.sl-empty p { margin: 4px 0; }

/* TOP 3 PODIUM */
.sl-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.sl-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    background: rgba(16, 16, 24, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.sl-podium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.sl-podium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.sl-podium-card.gold { border-color: rgba(255, 215, 0, 0.3); }
.sl-podium-card.gold::before { background: linear-gradient(90deg, transparent, #FFD700, transparent); }
.sl-podium-card.silver { border-color: rgba(192, 192, 192, 0.3); }
.sl-podium-card.silver::before { background: linear-gradient(90deg, transparent, #C0C0C0, transparent); }
.sl-podium-card.bronze { border-color: rgba(205, 127, 50, 0.3); }
.sl-podium-card.bronze::before { background: linear-gradient(90deg, transparent, #CD7F32, transparent); }

.sl-podium-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 12px;
}
.sl-podium-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.sl-podium-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.sl-podium-rank.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.sl-podium-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.sl-podium-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.sl-podium-photo span { font-size: 1.6rem; }
.sl-podium-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 700; font-size: 1rem; margin-bottom: 2px; overflow: hidden; max-width: 100%; }
.sl-podium-record { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.sl-podium-division { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 12px; }
.sl-podium-stat {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(232, 184, 48, 0.3);
}
.sl-podium-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.sl-podium-details { display: flex; gap: 12px; margin-bottom: 4px; }
.sl-podium-detail { font-size: 0.78rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.sl-podium-sub { font-size: 0.72rem; color: var(--text-muted); }

/* LEADERBOARD LIST */
.sl-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
}
.sl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(16, 16, 24, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.sl-item:hover {
    border-color: rgba(232, 184, 48, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.sl-item.gold { border-color: rgba(255, 215, 0, 0.25); background: rgba(255, 215, 0, 0.04); }
.sl-item.silver { border-color: rgba(192, 192, 192, 0.25); background: rgba(192, 192, 192, 0.04); }
.sl-item.bronze { border-color: rgba(205, 127, 50, 0.25); background: rgba(205, 127, 50, 0.04); }

.sl-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.sl-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.sl-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.sl-rank.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.sl-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.06);
}
.sl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.sl-photo span { font-size: 1.3rem; }

.sl-fighter-info { flex: 1; min-width: 0; }
.sl-name { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-meta { display: flex; gap: 10px; font-size: 0.8rem; color: var(--text-muted); }
.sl-record { font-family: 'JetBrains Mono', monospace; }

.sl-stat-display { text-align: right; min-width: 130px; }
.sl-stat-main {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(232, 184, 48, 0.2);
}
.sl-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sl-stat-sub { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 1px; }

/* Stat groups for multi-column stat display */
.sl-stat-group {
    display: flex;
    gap: 16px;
    align-items: center;
}
.sl-stat-block {
    text-align: center;
    min-width: 60px;
}
.sl-stat-block-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sl-stat-block-val.primary { color: var(--accent-gold); font-size: 1.2rem; text-shadow: 0 0 15px rgba(232, 184, 48, 0.2); }
.sl-stat-block-lbl { display: block; font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }

/* Related Links */
.sl-related {
    background: rgba(16, 16, 24, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.sl-related h3 { font-size: 1rem; margin-bottom: 12px; }
.sl-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sl-related-links a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.sl-related-links a:hover {
    border-color: rgba(232, 184, 48, 0.3);
    color: var(--accent-gold);
    background: rgba(232, 184, 48, 0.06);
}

/* SEO Content */
.sl-seo-content, .seo-content {
    margin-top: 24px;
    padding: 24px;
    background: rgba(16, 16, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}
.sl-seo-content h2, .sl-seo-content h3, .seo-content h2, .seo-content h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.sl-seo-content p, .seo-content p { margin-bottom: 12px; }
.sl-seo-content ul, .seo-content ul { padding-left: 20px; margin-bottom: 12px; }
.sl-seo-content li, .seo-content li { margin-bottom: 4px; }
.sl-seo-content a, .seo-content a { color: var(--accent-gold); }

/* RESPONSIVE - STATS LEADERBOARD PAGES */
@media (max-width: 768px) {
    .stats-leaderboard-page { padding: 16px; }
    .sl-header h1 { font-size: 1.4rem; }
    .sl-podium { display: none; }
    .sl-item {
        padding: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .sl-photo { width: 40px; height: 40px; }
    .sl-name {
        font-size: 0.9rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.3;
    }
    .sl-fighter-info {
        flex: 1;
        min-width: 0;
    }
    .sl-stat-display {
        min-width: unset;
        width: 100%;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
        padding-top: 6px;
        margin-left: 50px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .sl-stat-main { font-size: 1.1rem; }
    .sl-stat-label { margin-right: 4px; }
    .sl-stat-sub { font-size: 0.75rem; }
    .sl-stat-group {
        width: 100%;
        margin-left: 50px;
        padding-top: 6px;
        border-top: 1px solid rgba(255,255,255,0.06);
        gap: 10px;
    }
    .sl-stat-block { min-width: 50px; }
    .sl-filter-form { flex-wrap: wrap; }
    .sl-filter-form select { max-width: 100%; }
    .sl-related-links { flex-direction: column; }
    .sl-related-links a { text-align: center; }
    .stats-category-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
    .sl-rank { width: 28px; height: 28px; font-size: 0.8rem; flex-shrink: 0; }
    .sl-photo { width: 36px; height: 36px; }
    .sl-name { font-size: 0.85rem; }
    .sl-meta { flex-direction: column; gap: 2px; font-size: 0.72rem; }
    .sl-stat-display { margin-left: 46px; }
    .sl-stat-main { font-size: 1rem; }
    .sl-stat-sub { font-size: 0.68rem; }
    .sl-stat-group { margin-left: 46px; gap: 6px; }
    .sl-stat-block-val { font-size: 0.85rem; }
    .sl-stat-block-val.primary { font-size: 1rem; }
}
