/* 全ランキングページ専用スタイル - 最小限版 */

.page-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.page-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.page-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 統計情報コンテナ - 最小限 */
.stats-container {
    max-width: 1000px;
    margin: 0 auto 15px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 0.8rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: #666;
    margin-bottom: 2px;
}

.stat-value {
    font-weight: bold;
    color: #333;
}

/* 全ランキングコンテナ - 最小限 */
.full-ranking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* ランキングリスト - 縦並び版 */
.full-ranking-list {
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.full-ranking-item {
    padding: 4px 8px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
}

.full-ranking-item:hover {
    background: #f9f9f9;
}

/* 上位3位の最小限スタイル */
.full-ranking-item.top-1 {
    background: #fff8dc;
}

.full-ranking-item.top-2 {
    background: #f0f0f0;
}

.full-ranking-item.top-3 {
    background: #ffe4cd;
}

.rank-number {
    font-weight: bold;
    color: #555;
    min-width: 30px;
    margin-right: 8px;
    font-size: 0.8rem;
}

.player-info {
    flex: 1;
    margin-right: 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.player-date {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    text-align: left;
}

.score-info {
    text-align: right;
    min-width: 50px;
}

.total-score {
    font-weight: bold;
    color: #333;
    font-size: 0.8rem;
}

/* ローディング表示 - 最小限 */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* エラーメッセージ - 最小限 */
.error-message {
    text-align: center;
    padding: 15px;
    color: #c53030;
    font-size: 0.9rem;
}

.error-message h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.error-message p {
    margin: 0;
    font-size: 0.8rem;
}

/* データなし表示 - 最小限 */
.no-data {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

/* さらに表示ボタン */
.load-more-container {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
}

.btn-load-more {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ナビゲーションボタン - 最小限 */
.ranking-navigation {
    text-align: center;
    margin-top: 15px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}

/* レスポンシブデザイン - 最小限 */
@media (max-width: 768px) {
    .full-ranking-container {
        margin: 0 5px;
        padding: 5px;
    }
    
    .full-ranking-list {
        gap: 1px;
    }
    
    .full-ranking-item {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .stats-container {
        margin: 0 5px 10px;
        padding: 5px;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .stat-item {
        padding: 5px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .ranking-navigation {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .btn {
        width: 150px;
        padding: 8px 12px;
    }
    
    .btn-load-more {
        width: 200px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.3rem;
    }
    
    .full-ranking-item {
        padding: 3px 4px;
    }
    
    .player-info {
        gap: 1px;
    }
    
    .player-name {
        text-align: left;
        font-size: 0.75rem;
    }
    
    .player-date {
        text-align: left;
        font-size: 0.65rem;
    }
    
    .score-info {
        text-align: center;
        min-width: auto;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    
    .player-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}
