body {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
}

.stats-section {
    margin: 2em 1em;
    clear: both;
}

.stats-section h2 {
    margin-bottom: 1em;
    text-align: center;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1em 0;
}

.record-card {
    background: black;
    color: white;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
}

.record-card .label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 0.5em;
}

.record-card .value {
    font-size: 2em;
    font-weight: bold;
}

.record-card .context {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 0.5em;
}

a.record-card {
    text-decoration: none;
}

.record-card.record-link {
    border: 1px solid #fe5a1d;
    cursor: pointer;
}

.record-card.record-link:hover {
    border-color: white;
}

.chart-container {
    margin: 1em 0;
    min-height: 100px;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.locations-table th,
.locations-table td {
    padding: 0.5em 1em;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #ccc);
}

.locations-table th {
    background: #333;
    color: #fff;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin: 1em 0;
    text-align: center;
}

.total-item {
    background: black;
    border: 1px solid white;
    border-radius: 8px;
    padding: 1em;
}

.total-item .value {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
}

.total-item .label {
    font-size: 0.9em;
    opacity: 0.8;
    color: #fff;
}

.locations-table td {
    color: #fff;
}

@media (max-width: 500px) {
    .records-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
