* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 1600px; margin: 0 auto; }
h1 { color: #1a1a1a; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
h1 i { color: #2563eb; }
.subtitle { color: #666; margin-bottom: 20px; }

.controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.search { padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 200px; }
.sort-btn { padding: 8px 12px; background: white; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.sort-btn:hover { background: #f0f0f0; }
.sort-btn.active { background: #2563eb; color: white; border-color: #2563eb; }

.nav { display: flex; gap: 10px; margin-bottom: 20px; }
.nav a { color: #2563eb; text-decoration: none; padding: 10px 16px; background: white; border-radius: 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }

.player { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.player-header { display: flex; gap: 12px; padding: 15px; align-items: center; }
.player-photo { width: 80px; height: 100px; border-radius: 8px; object-fit: cover; background: #e5e5e5; flex-shrink: 0; }
.player-name { font-size: 15px; font-weight: 600; }
.player-name a { color: inherit; text-decoration: none; }
.player-meta { font-size: 12px; color: #666; }

.player-stats { padding: 12px 15px; background: #f9fafb; border-top: 1px solid #eee; }
.stats-row { display: flex; gap: 15px; flex-wrap: wrap; }
.stat-group { display: flex; gap: 8px; }
.player-stat { text-align: center; min-width: 40px; }
.player-stat-value { font-size: 14px; font-weight: 600; }
.player-stat-label { font-size: 8px; color: #666; text-transform: uppercase; }
.stat-header { font-size: 9px; color: #999; text-transform: uppercase; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.stat-header i { font-size: 12px; }

.wins { color: #16a34a; }
.draws { color: #ca8a04; }
.losses { color: #dc2626; }
.goals { color: #2563eb; }
.minutes { color: #059669; }
.pct { font-size: 9px; color: #888; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: #2563eb; text-decoration: none; }
.count { color: #666; font-size: 14px; }

@media (max-width: 600px) {
    body { padding: 10px; }
    .controls { gap: 5px; }
    .search { width: 100%; }
    .sort-btn { padding: 6px 10px; font-size: 11px; }
    .grid { grid-template-columns: 1fr; }
    .player-photo { width: 60px; height: 75px; border-radius: 8px; }
    .stats-row { gap: 10px; }
}

/* Header Logo */
.header-logo { width: 60px; height: 60px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.header-logo img { width: 50px; height: 50px; object-fit: contain; }
.header-logo i { font-size: 30px; color: #2563eb; }
h1 { display: flex; align-items: center; }
