/* Statistikseite */
.stats.stats-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .stats.stats-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stats .stat-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.chart-box {
    position: relative;
    height: 280px;
}

.chart-box-small {
    height: 220px;
}

.chart-data {
    margin-top: 12px;
    font-size: 0.9rem;
}

.chart-data summary {
    color: var(--accent);
    cursor: pointer;
}

.data-table {
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 4px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-list li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.top-rank {
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.top-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.top-title {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.top-bar {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
}

.top-bar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
}

.top-count {
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.top-count strong {
    font-size: 1.15rem;
}
