/* ==============================================
   Site Stats Shortcode v1.7.2 - CSS
   [ams_site_stats] テーブルスタイル（トップ3メダル強調）
   ============================================== */

.ams-stats-wrap {
    margin: 16px 0;
    overflow-x: auto;
}

.ams-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    line-height: 1.6;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ams-stats-table thead {
    background: #f5f5f5;
}

.ams-stats-table th {
    padding: 10px 12px;
    font-weight: 600;
    font-size: .8rem;
    color: #666;
    border-bottom: 2px solid #ddd;
}

.ams-stats-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.ams-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.ams-stats-table tbody tr:hover {
    background: #fafafa;
}

/* --- 順位列 --- */
.ams-stats-th-rank {
    width: 44px;
    text-align: center;
}

.ams-stats-rank {
    text-align: center;
    color: #999;
}

/* --- メダルバッジ --- */
.ams-stats-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

/* 1位: ゴールド */
.ams-stats-medal-1 {
    background: #faeeda;
    color: #854f0b;
}

/* 2位: シルバー */
.ams-stats-medal-2 {
    background: #f1efe8;
    color: #5f5e5a;
}

/* 3位: ブロンズ */
.ams-stats-medal-3 {
    background: #f0997b;
    color: #4a1b0c;
}

/* --- 数値列 --- */
.ams-stats-th-num,
.ams-stats-num {
    text-align: right;
    white-space: nowrap;
}

.ams-stats-th-num {
    width: 80px;
}

/* --- サイト名列 --- */
.ams-stats-th-name {
    text-align: left;
    min-width: 140px;
}

/* --- リンク --- */
.ams-stats-table a {
    color: #222;
    text-decoration: none;
}
.ams-stats-table a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* --- ヘッダー内 small --- */
.ams-stats-table small {
    color: #999;
    font-weight: normal;
}

/* --- 空メッセージ --- */
.ams-stats-empty {
    color: #888;
    font-style: italic;
}
