/**
 * Indie Buzz Ranking - フロントエンドスタイル
 */

.ibr-ranking-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ibr-ranking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ibr-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.ibr-meta {
    color: #666;
    font-size: 0.9rem;
}

.ibr-week {
    margin-right: 1rem;
}

.ibr-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ibr-ranking-table thead {
    background: #2c3e50;
    color: #fff;
}

.ibr-ranking-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ibr-ranking-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.ibr-ranking-table tbody tr:hover {
    background: #f8f9fa;
}

/* ランク列 */
.ibr-col-rank {
    width: 60px;
    text-align: center;
}

.ibr-rank-number {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: 700;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
}

/* ランク別スタイル */
.ibr-rank-gold .ibr-rank-number {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #5c4300;
}

.ibr-rank-silver .ibr-rank-number {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #4a4a4a;
}

.ibr-rank-bronze .ibr-rank-number {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #4a3000;
}

.ibr-rank-top10 .ibr-rank-number {
    background: #3498db;
    color: #fff;
}

/* スコア列 */
.ibr-col-score {
    width: 80px;
    text-align: center;
}

.ibr-score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* タイトル列 */
.ibr-col-title {
    min-width: 200px;
}

.ibr-game-title {
    font-weight: 500;
    color: #1a1a1a;
}

/* デルタ列 */
.ibr-col-delta {
    width: 100px;
    text-align: right;
}

.ibr-delta {
    color: #27ae60;
    font-weight: 600;
}

/* リンク列 */
.ibr-col-link {
    width: 80px;
    text-align: center;
}

.ibr-steam-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #1b2838;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.ibr-steam-link:hover {
    background: #2a475e;
    color: #fff;
}

/* フッター */
.ibr-ranking-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* No Data */
.ibr-no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ibr-ranking-table {
        font-size: 0.9rem;
    }

    .ibr-ranking-table th,
    .ibr-ranking-table td {
        padding: 0.625rem 0.5rem;
    }

    .ibr-col-delta,
    .ibr-col-link {
        display: none;
    }

    .ibr-title {
        font-size: 1.4rem;
    }
}
