* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #4a00e0;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.attribution {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.attribution a {
    color: #4a00e0;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}


.update-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.article-published {
    font-size: 0.85rem;
    color: #4a00e0;
    font-weight: 500;
}

.last-updated {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.week-status {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.week-completed {
    color: #28a745;
    font-weight: 600;
}

.position-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.nav-btn {
    background: white;
    border: 2px solid #4a00e0;
    color: #4a00e0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #4a00e0;
    color: white;
}

.nav-btn.active {
    background: #4a00e0;
    color: white;
}

.rankings-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 50px;
}

#position-title {
    color: #4a00e0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.rankings-table th {
    background: #4a00e0;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.rankings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.rankings-table tr:hover {
    background: #f8f9fa;
}

.rank-cell {
    font-weight: 600;
    color: #4a00e0;
}

.position-rank {
    color: #888;
    font-size: 0.9em;
    font-weight: normal;
}

.player-cell {
    font-weight: 500;
}

.rank-up {
    color: #28a745;
    font-weight: 600;
}

.rank-down {
    color: #dc3545;
    font-weight: 600;
}

.rank-same {
    color: #6c757d;
    font-weight: 600;
}

.analysis-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.analysis-section h3 {
    color: #4a00e0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #4a00e0;
}

.stat-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a00e0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .position-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .rankings-table {
        font-size: 0.9rem;
    }
    
    .rankings-table th,
    .rankings-table td {
        padding: 8px 10px;
    }
    
    .analysis-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rankings-table th,
    .rankings-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .rankings-table th:nth-child(4),
    .rankings-table td:nth-child(4),
    .rankings-table th:nth-child(5),
    .rankings-table td:nth-child(5) {
        display: none;
    }
}

/* Page Navigation Links */
.page-navigation {
    margin: 15px 0;
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: #0056b3;
    text-decoration: none;
}