/* =========================================================
   SWELL Post Views — フロントエンドスタイル
   ========================================================= */

/* ---------- PVバッジ（記事内） ---------- */
.spv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 16px;
    padding: 5px 12px;
    background: #f5f7fa;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    font-size: .82rem;
    color: #555;
    line-height: 1;
}

.spv-badge .spv-icon {
    width: 14px;
    height: 14px;
    color: #888;
    flex-shrink: 0;
}

.spv-badge .spv-label {
    color: #777;
    font-size: .78rem;
}

.spv-badge .spv-count {
    font-weight: 700;
    color: #333;
    font-size: .9rem;
    letter-spacing: -.5px;
}

.spv-badge .spv-unit {
    font-size: .72rem;
    color: #aaa;
}

/* ---------- 記事カード用バッジ ---------- */
.spv-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    color: #888;
    margin-top: 4px;
}

.spv-card-badge .spv-icon-sm {
    width: 11px;
    height: 11px;
}

/* ---------- ランキングウィジェット ---------- */
.spv-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spv-ranking__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spv-ranking__item:last-child {
    border-bottom: none;
}

.spv-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 700;
    background: #e0e0e0;
    color: #555;
    flex-shrink: 0;
}

.spv-rank--1 { background: #f5c518; color: #5a4500; }
.spv-rank--2 { background: #c0c0c0; color: #444; }
.spv-rank--3 { background: #cd7f32; color: #fff; }

.spv-ranking__link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.spv-ranking__link:hover .spv-ranking__title {
    text-decoration: underline;
    color: var(--color-main, #1a73e8);
}

.spv-ranking__thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.spv-ranking__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.spv-ranking__title {
    font-size: .84rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spv-ranking__count {
    font-size: .72rem;
    color: #999;
}
