/* ==================== SOLO QUEUE STATS ==================== */

.soloq-section {
  margin-top: 30px;
}

.soloq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.soloq-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.soloq-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.soloq-filters span {
  font-size: 12px;
  color: #888;
}

.soloq-mode {
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  color: #fff !important;
}

/* Players Row */
.soloq-players-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Player Card */
.soloq-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  min-width: 180px;
}

.soloq-player-card:hover {
  transform: scale(1.02);
}

.soloq-player-card.selected {
  transform: scale(1.02);
}

.soloq-player-card.selected .player-avatar-wrapper {
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

/* Player Recent Picks (below card) */
.player-recent-picks {
  margin-top: 15px;
  width: 100%;
}

.recent-picks-title {
  color: #5b7fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 5px;
}

/* Player Avatar */
.player-avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1115;
}

.player-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* Player Stats Under Avatar */
.player-quick-stats {
  margin-top: 10px;
  text-align: center;
}

.player-no-data {
  font-size: 11px;
  color: #666;
  margin-bottom: 5px;
}

.player-games-info {
  font-size: 11px;
  color: #888;
}

.player-winrate {
  font-size: 12px;
  font-weight: 600;
}

.player-winrate.positive {
  color: #4caf50;
}

.player-winrate.negative {
  color: #f44336;
}

.player-winrate.neutral {
  color: #ff9800;
}

/* Champion Icons Grid */
.player-champions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.champion-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.champion-mini {
  position: relative;
}

.champion-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.champion-mini-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: rgba(15, 17, 21, 0.95);
  color: #fff;
  font-size: 9px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* Player Details Panel */
.player-details-panel {
  background: rgba(15, 17, 21, 0.6);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-details-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.close-details-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-details-btn:hover {
  color: #fff;
}

/* Stats Summary */
.player-stats-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-value.win {
  color: #4caf50;
}

.stat-value.loss {
  color: #f44336;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Tabs */
.player-games-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(10, 11, 14, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.tab-btn.active {
  background: #5b7fff;
  color: #fff;
}

/* Games List - Table style */
.player-games-list {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(15, 17, 21, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Weekly stats header */
.weekly-stats-header {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.weekly-stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

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

.weekly-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.weekly-stat-value.positive { color: #34d399; }
.weekly-stat-value.neutral { color: #fbbf24; }
.weekly-stat-value.negative { color: #f87171; }

.weekly-stat-label {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.weekly-champs-title {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.weekly-champs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.weekly-champ {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.weekly-champ-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.weekly-champ-name {
  color: #d1d5db;
  min-width: 60px;
}

.weekly-champ-games {
  color: #9ca3af;
  font-size: 0.7rem;
}

.weekly-champ-wr {
  font-size: 0.7rem;
  font-weight: 600;
}

.weekly-champ-wr.positive { color: #34d399; }
.weekly-champ-wr.neutral { color: #fbbf24; }
.weekly-champ-wr.negative { color: #f87171; }

.game-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  background: rgba(18, 20, 26, 0.4);
}

.game-row:nth-child(even) {
  background: rgba(22, 24, 30, 0.5);
}

.game-row:hover {
  background: rgba(74, 124, 255, 0.08);
}

.game-row:last-child {
  border-bottom: none;
}

.game-row.win {
  border-left: 3px solid #4caf50;
}

.game-row.loss {
  border-left: 3px solid #f44336;
}

.game-champion-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Teams SoloQ game champion */
.game-champion {
  flex-shrink: 0;
}

.game-champion img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
  flex: 1;
  min-width: 80px;
}

.game-result {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.game-result.win {
  color: #4caf50;
}

.game-result.loss {
  color: #f44336;
}

.game-position {
  font-size: 0.6875rem;
  color: #9ca3af;
  text-transform: uppercase;
}

.game-kda {
  text-align: center;
  min-width: 80px;
}

.game-kda-numbers {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e4e6eb;
}

.game-kda-ratio {
  font-size: 0.6875rem;
  color: #9ca3af;
}

.game-stats {
  display: flex;
  gap: 1.5rem;
}

.game-stat {
  text-align: center;
  min-width: 50px;
}

.game-stat-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e4e6eb;
}

.game-stat-label {
  font-size: 0.625rem;
  color: #6b7280;
  text-transform: uppercase;
}

.game-time {
  text-align: right;
  min-width: 70px;
}

.game-duration {
  font-size: 0.8125rem;
  color: #e4e6eb;
}

.game-date {
  font-size: 0.625rem;
  color: #6b7280;
}

/* Loading State */
.soloq-loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

/* Empty State */
.soloq-empty {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

/* Scrollbar */
.player-games-list::-webkit-scrollbar {
  width: 6px;
}

.player-games-list::-webkit-scrollbar-track {
  background: rgba(15, 17, 21, 0.8);
  border-radius: 3px;
}

.player-games-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.player-games-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 1200px) {
  .soloq-players-row {
    gap: 10px;
  }

  .soloq-player-card {
    min-width: 120px;
  }

  .player-avatar-wrapper {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .soloq-players-row {
    flex-direction: column;
    align-items: center;
  }

  .player-stats-summary {
    justify-content: center;
  }

  .game-stats {
    display: none;
  }
}

/* ==================== TEAMS SOLOQ ==================== */

.teams-soloq-container {
  padding: 20px;
}

/* Back Button */
.teams-soloq-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 127, 255, 0.15);
  border: none;
  color: #5b7fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.teams-soloq-back-btn:hover {
  background: rgba(91, 127, 255, 0.25);
  transform: translateX(-3px);
}

.teams-soloq-back-btn span {
  font-size: 18px;
}

/* Teams Grid */
/* Wrapper for league-grouped sections (LEC + LFL). Each section has its own grid. */
.teams-soloq-grid-wrapper {
  display: block;
}

.teams-soloq-league-section {
  margin-bottom: 28px;
}

.teams-soloq-league-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b8bcc8;
  margin: 4px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.teams-soloq-league-title::before,
.teams-soloq-league-title::after {
  content: '';
  flex: 0 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
}
.teams-soloq-league-title::after {
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), transparent);
}

.teams-soloq-league-count {
  font-size: 11px;
  font-weight: 600;
  color: #9aa1ad;
  background: rgba(91,127,255,0.15);
  border: 1px solid rgba(91,127,255,0.25);
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.teams-soloq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
}

/* Team Card */
.teams-soloq-card {
  background: rgba(20, 22, 30, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.teams-soloq-card:hover {
  border-color: rgba(91, 127, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.teams-soloq-card-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  overflow: hidden;
}

.teams-soloq-card-logo img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

/* Initials displayed when a team logo file is missing. */
.teams-soloq-card-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4d8e0;
  background: linear-gradient(135deg, rgba(91,127,255,0.18), rgba(120,80,200,0.18));
  border-radius: 50%;
}

/* SoloQ activity-trend chart controls (date range + apply button). */
.teams-soloq-trend-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #b8bcc8;
}
.teams-soloq-trend-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.teams-soloq-trend-controls input[type="date"],
.teams-soloq-trend-controls input[type="text"] {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #d4d8e0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}
.teams-soloq-trend-controls input::placeholder {
  color: #6b7180;
}

.teams-soloq-trend-champion-wrap {
  position: relative;
  display: inline-block;
}
.teams-soloq-trend-champion-wrap input[type="text"] {
  padding-right: 22px; /* room for the clear button */
  min-width: 180px;
}

.teams-soloq-trend-champion-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7180;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.teams-soloq-trend-champion-clear:hover {
  color: #d4d8e0;
}

/* Avatar fallback (initials) for the home/team SoloQ weather widget. */
.home-soloq-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(91, 127, 255, 0.2);
  color: #d4d8e0;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.teams-soloq-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.teams-soloq-card-players {
  font-size: 12px;
  color: #888;
}

/* Team Detail View */
.teams-soloq-detail {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teams-soloq-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.teams-soloq-detail-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.teams-soloq-detail-logo img {
  max-width: 45px;
  max-height: 45px;
  object-fit: contain;
}

.teams-soloq-detail-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Recent Champion Picks Section */
.team-recent-picks-section {
  margin-bottom: 30px;
}

.team-recent-picks-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #888;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-recent-picks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.recent-picks-column {
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.recent-picks-header {
  background: rgba(91, 127, 255, 0.15);
  color: #5b7fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 10px 8px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-picks-list {
  /* No max-height, show all champions */
}

.recent-pick-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.recent-pick-row:hover {
  opacity: 0.8;
}

.recent-pick-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  margin-right: 8px;
  flex-shrink: 0;
}

.recent-pick-name {
  flex: 1;
  font-size: 13px;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-pick-count {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  min-width: 24px;
  text-align: right;
}

.no-recent-picks {
  padding: 20px 10px;
  text-align: center;
  color: #666;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .teams-soloq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .teams-soloq-card-logo {
    width: 60px;
    height: 60px;
  }

  .teams-soloq-card-logo img {
    max-width: 45px;
    max-height: 45px;
  }

  .teams-soloq-card-name {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .teams-soloq-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== MATCHUPS PANEL ==================== */

.matchups-panel {
  margin-top: 20px;
}

.matchups-filters {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 15px;
  background: rgba(15, 17, 21, 0.6);
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.matchups-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matchups-filters .filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
}

.matchups-filters .filter-input,
.matchups-filters .filter-select {
  padding: 8px 12px;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  min-width: 150px;
}

.matchups-filters .filter-input:focus,
.matchups-filters .filter-select:focus {
  outline: none;
  border-color: #5b7fff;
}

.matchups-loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

.matchups-empty {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  background: rgba(15, 17, 21, 0.4);
  border-radius: 8px;
}

/* Matchups Table */
.matchups-table-container {
  overflow-x: auto;
}

.matchups-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 17, 21, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.matchups-table thead {
  background: rgba(20, 22, 28, 0.9);
}

.matchups-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matchups-table td {
  padding: 10px;
  color: #e4e6eb;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.matchups-table tbody tr {
  transition: background 0.2s;
}

.matchups-table tbody tr:hover {
  background: rgba(74, 124, 255, 0.08);
}

.champion-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.champion-cell .champion-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.matchups-table .positive {
  color: #4caf50;
}

.matchups-table .negative {
  color: #f44336;
}

.matchups-table .enemy-stats {
  color: #9ca3af;
}

.btn-view-games {
  padding: 5px 12px;
  background: rgba(91, 127, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: #5b7fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-games:hover {
  background: rgba(91, 127, 255, 0.3);
}

/* Matchup Games Detail */
.matchup-games-detail {
  margin-top: 20px;
}

.matchup-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matchup-games-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.matchup-games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matchup-game-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  background: rgba(18, 20, 26, 0.6);
  border-radius: 8px;
  border-left: 4px solid transparent;
}

.matchup-game-row.win {
  border-left-color: #4caf50;
}

.matchup-game-row.loss {
  border-left-color: #f44336;
}

.matchup-game-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.result-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.result-badge.win {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.result-badge.loss {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.game-date {
  font-size: 0.7rem;
  color: #6b7280;
}

.matchup-game-champions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.matchup-game-champions .my-champion,
.matchup-game-champions .enemy-champion {
  display: flex;
  align-items: center;
  gap: 8px;
}

.matchup-game-champions .champion-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.matchup-game-champions .vs-text {
  color: #6b7280;
  font-size: 0.875rem;
}

.matchup-game-stats {
  display: flex;
  gap: 20px;
}

.matchup-game-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.matchup-game-stats .stat-label {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
}

.matchup-game-stats .stat-value {
  font-size: 0.8rem;
  color: #e4e6eb;
}

.matchup-game-stats .stat-value.positive {
  color: #4caf50;
}

.matchup-game-stats .stat-value.negative {
  color: #f44336;
}

/* Autocomplete in matchups */
.matchups-filters .champion-autocomplete-wrapper {
  position: relative;
}

.matchups-filters .champion-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 17, 21, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.matchups-filters .champion-autocomplete-dropdown.active {
  display: block;
}

.autocomplete-champ-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .matchups-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .matchup-game-stats {
    display: none;
  }

  .matchup-game-row {
    flex-wrap: wrap;
  }
}

/* ==================== CHAMPION TRACKER (assigned champions) ==================== */

.champ-tracker {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(15, 17, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.champ-tracker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.champ-tracker-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #9ca3af;
  flex: 1;
}

.champ-tracker-total {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
}

.champ-tracker-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.champ-tracker-btn:hover { color: #e5e7eb; border-color: rgba(255, 255, 255, 0.3); }

.champ-tracker-btn.save {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
}

.champ-tracker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.champ-tracker-chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.champ-tracker-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.champ-tracker-chip.zero img { filter: grayscale(1) brightness(0.55); }

.champ-tracker-chip.edit { cursor: pointer; }
.champ-tracker-chip.edit:hover { border-color: rgba(239, 68, 68, 0.8); }

.champ-tracker-count {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 16px;
  text-align: center;
  background: rgba(5, 6, 10, 0.85);
  color: #e5e7eb;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 5px;
  padding: 0 3px;
}

.champ-tracker-chip.zero .champ-tracker-count { color: #f87171; }

.champ-tracker-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fca5a5;
  font-size: 1.1rem;
  font-weight: 800;
  background: rgba(5, 6, 10, 0.55);
  opacity: 0;
}

.champ-tracker-chip.edit:hover .champ-tracker-x { opacity: 1; }

.champ-tracker-search {
  width: 100%;
  margin-top: 10px;
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e5e7eb;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.champ-tracker-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.champ-tracker-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.champ-tracker-result:hover { border-color: rgba(59, 130, 246, 0.7); }

.champ-tracker-result img { width: 22px; height: 22px; border-radius: 4px; }

.champ-tracker-muted { color: #6b7280; font-size: 0.78rem; }
