.stats {
    color: #70757a;
    margin-top: 2em;
    font-size: 0.8em;
}

table {
    width: 100%;
    margin-bottom: 0.5em;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 4px 8px;
}

.definition tr:nth-child(odd) {
    background: #afd3ff3a;
}

.definition th {
    background: #afd3ff;
}

.loanword th {
    background: #afffdb;
}

.loanword tr:nth-child(odd) {
    background: #afffdb3a;
}

.related th {
    background: #ffaffb;
}

.related tr:nth-child(odd) {
    background: #ffaffb3a;
}

.freq-section {
    margin-bottom: 0.75em;
}

.freq-header {
    background: #afd3ff;
    padding: 4px 8px;
    font-weight: bold;
}

.freq-bar-track {
    background: #e8e8e8;
    height: 22px;
    margin: 6px 0;
    border-radius: 3px;
    overflow: hidden;
}

.freq-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    min-width: 4px;
}

.freq-details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 2px;
}

.freq-label {
    font-weight: bold;
    font-size: 1em;
}

.freq-numbers {
    color: #70757a;
    font-size: 0.85em;
}

.examples {
    font-size: 1.1em;
}

.level-badge {
    display: inline-block;
    font-size: 0.8em;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 1px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-left: 0.5em;
}

.level-badge:hover {
    background: #d0e0fd;
}

.audio-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
}

.tone-link {
    font-size: 0.85em;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.tone-link:hover {
    background: #d0e0fd;
}
