/* ============================================================
   SoloQ Tracker - style.css
   Inspired by soloqchallenge.fr - dark cinematic design
   ============================================================ */

[hidden] { display: none !important; }

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

:root {
  --bg-base:        #03050b;
  --bg-nav:         rgba(3, 5, 11, 0.97);
  --bg-surface:     #0c1020;
  --bg-card:        #0f1428;
  --bg-table:       #0b101e;
  --bg-row-hover:   #141c2e;
  --border:         #1a2236;
  --border-light:   #1e2d45;
  --border-accent:  #2a3d5c;

  --gold:           #c89030;
  --gold-light:     #f0b030;
  --gold-dim:       #7a5820;

  --text-primary:   #dce0f0;
  --text-secondary: #6880a0;
  --text-muted:     #334050;

  --blue-team:      #4a9eff;
  --red-team:       #ff4040;

  --win:            #3dd68c;
  --loss:           #e84057;
  --win-bg:         rgba(61,214,140,0.12);
  --loss-bg:        rgba(232,64,87,0.12);
  --neutral:        #7a94b0;

  --shadow:         0 8px 40px rgba(0,0,0,0.85);
  --radius:         4px;

  --challenger:     #f4c842;
  --grandmaster:    #e84057;
  --master:         #9d4fc8;
  --diamond:        #57a8e0;
  --emerald:        #3dd68c;
  --platinum:       #4eb3c8;
  --gold-rank:      #c89b3c;
  --silver:         #8facc2;
  --bronze:         #8c5e38;
  --iron:           #5a5a6e;
}

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Background beam effects ---- */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow-red {
  position: absolute;
  top: -150px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at 30% 30%, rgba(180,30,25,0.18) 0%, transparent 65%);
}

.bg-glow-blue {
  position: absolute;
  top: -80px;
  right: -200px;
  width: 700px;
  height: 650px;
  background: radial-gradient(ellipse at 70% 20%, rgba(15,55,180,0.10) 0%, transparent 65%);
}

.bg-beam {
  position: absolute;
  top: -250px;
  width: 30px;
  height: 1500px;
  background: linear-gradient(
    to bottom,
    rgba(220,230,255,0.18) 0%,
    rgba(220,230,255,0.10) 25%,
    rgba(220,230,255,0.03) 55%,
    transparent 100%
  );
  transform-origin: top center;
  filter: blur(3px);
}

.bg-beam-1 { right: 18%; transform: rotate(-32deg); opacity: 1; }
.bg-beam-2 { right: 23%; width: 16px; transform: rotate(-25deg); opacity: 0.7; }
.bg-beam-3 { right: 14%; width: 22px; transform: rotate(-40deg); opacity: 0.5; }

.header, main, .modal-overlay { position: relative; z-index: 1; }

/* ---- NAVBAR ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-right { justify-content: flex-end; position: relative; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(255,255,255,0.03);
}

.nav-item.nav-active {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(200,144,48,0.08);
}

.nav-kr {
  font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.nav-fr {
  font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.nav-item.nav-active .nav-kr { color: var(--gold-light); }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 8px 22px;
  border: 2px solid var(--gold-dim);
  border-radius: 6px;
  background: rgba(200,144,48,0.05);
  cursor: default;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px rgba(200,144,48,0.55));
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-region {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Sync */
.nav-sync {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 10px;
  line-height: 1;
}

.nav-sync .nav-kr {
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.nav-sync .nav-fr {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Add button */
.nav-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(200,144,48,0.10);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-add-btn:hover {
  background: rgba(200,144,48,0.20);
  border-color: var(--gold);
}

/* Admin button */
.nav-admin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(74,158,255,0.08);
  border: 1px solid #1e3a5f;
  border-radius: var(--radius);
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 6px;
}

.nav-admin-btn:hover {
  background: rgba(74,158,255,0.18);
  border-color: var(--blue-team);
}

.nav-admin-btn .btn-fr { color: var(--blue-team); }

.nav-admin-btn.admin-active {
  background: rgba(61,214,140,0.10);
  border-color: var(--win);
}

.nav-admin-btn.admin-active .btn-fr { color: var(--win); }

/* Admin dropdown */
.admin-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
  min-width: 200px;
  z-index: 300;
  overflow: hidden;
  animation: slideUp 0.15s ease;
}

.admin-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 11px 16px;
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.admin-dd-item:hover { background: var(--bg-row-hover); }
.admin-dd-sep { height: 1px; background: var(--border); }
.admin-dd-logout { color: var(--loss); }

.btn-kr {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.btn-fr {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  text-transform: uppercase;
  line-height: 1;
}

/* ---- Container ---- */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ---- Controls ---- */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 10px 44px 10px 16px;
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 600;
}

.search-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(200,144,48,0.12);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: 0.5;
}

.sort-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 86px;
}

.sort-btn:hover {
  border-color: var(--gold-dim);
  background: rgba(200,144,48,0.06);
}

.sort-btn.active {
  border-color: var(--gold);
  background: rgba(200,144,48,0.12);
}

.sort-btn .btn-kr { color: var(--gold); }
.sort-btn.active .btn-fr { color: var(--gold-light); }
.sort-btn:not(.active) .btn-fr { color: var(--text-secondary); }

/* ---- Leaderboard ---- */
.leaderboard-wrapper {
  background: var(--bg-table);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.leaderboard thead tr {
  border-bottom: 1px solid var(--border-light);
}

.leaderboard th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.col-rank  { width: 54px;  text-align: center; }
.col-lp    { width: 85px;  text-align: right; }
.col-lpt   { width: 85px;  text-align: right; }
.col-delta { width: 90px;  text-align: right; }
.col-games { width: 70px;  text-align: right; }
.col-wl    { width: 95px;  text-align: center; }
.col-wr    { width: 85px;  text-align: right; }
.col-tier  { width: 180px; }

.leaderboard tbody tr {
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.12s;
}

.leaderboard tbody tr:last-child { border-bottom: none; }
.leaderboard tbody tr:hover { background: var(--bg-row-hover); }

.leaderboard tbody tr:nth-child(1) { border-left-color: var(--gold-light); }
.leaderboard tbody tr:nth-child(2) { border-left-color: #b0bcc8; }
.leaderboard tbody tr:nth-child(3) { border-left-color: #c86028; }

.leaderboard td {
  padding: 15px 16px;
  vertical-align: middle;
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-muted);
}

.rank-num.top1 { color: var(--gold-light); font-size: 22px; }
.rank-num.top2 { color: #b8c8d8; font-size: 20px; }
.rank-num.top3 { color: #c86028; font-size: 20px; }

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.player-tag {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-value {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.lpt-value {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.games-value {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.delta {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.delta.pos  { color: var(--win); }
.delta.neg  { color: var(--loss); }
.delta.zero { color: var(--text-muted); }

.lp-per-game {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.lp-per-win  { color: var(--win); }
.lp-per-loss { color: var(--loss); }
.lp-per-sep  { color: var(--text-muted); }

.wl-cell {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.wl-w   { color: var(--win);  font-weight: 700; }
.wl-sep { color: var(--text-muted); margin: 0 3px; }
.wl-l   { color: var(--loss); font-weight: 700; }

.wr-cell { text-align: right; }

.wr-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.wr-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.wr-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--win);
  transition: width 0.4s ease;
}

.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon { font-size: 32px; display: block; margin-bottom: 12px; }

/* ---- Tier colors ---- */
.tier-challenger  { color: var(--challenger); }
.tier-grandmaster { color: var(--grandmaster); }
.tier-master      { color: var(--master); }
.tier-diamond     { color: var(--diamond); }
.tier-emerald     { color: var(--emerald); }
.tier-platinum    { color: var(--platinum); }
.tier-gold        { color: var(--gold-rank); }
.tier-silver      { color: var(--silver); }
.tier-bronze      { color: var(--bronze); }
.tier-iron        { color: var(--iron); }

.dot-challenger  { background: var(--challenger); box-shadow: 0 0 6px var(--challenger); }
.dot-grandmaster { background: var(--grandmaster); box-shadow: 0 0 6px var(--grandmaster); }
.dot-master      { background: var(--master);      box-shadow: 0 0 6px var(--master); }
.dot-diamond     { background: var(--diamond);     box-shadow: 0 0 6px var(--diamond); }
.dot-emerald     { background: var(--emerald);     box-shadow: 0 0 5px var(--emerald); }
.dot-platinum    { background: var(--platinum); }
.dot-gold        { background: var(--gold-rank); }
.dot-silver      { background: var(--silver); }
.dot-bronze      { background: var(--bronze); }
.dot-iron        { background: var(--iron); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  animation: slideUp 0.22s ease;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 100%);
}

.modal-rank-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.modal-tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.modal-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.modal-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.modal-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-history { padding: 20px 28px 28px; }

.history-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  background: var(--bg-surface);
  font-size: 13px;
  transition: background 0.15s;
}

.history-item:hover { background: var(--bg-row-hover); }
.history-item.win  { border-left-color: var(--win); }
.history-item.loss { border-left-color: var(--loss); }

.history-result {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-item.win  .history-result { color: var(--win); }
.history-item.loss .history-result { color: var(--loss); }

.history-lp-change {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  min-width: 48px;
  text-align: right;
}
.history-lp-change.pos  { color: var(--win); }
.history-lp-change.neg  { color: var(--loss); }
.history-lp-change.zero { color: var(--text-muted); }

.history-champ-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-champ-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-base);
}

.history-champ {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.history-champ-role {
  font-size: 11px;
  color: var(--text-muted);
}

.history-kda {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.history-cs {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.history-duration {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Global history tab ─────────────────────────────────────── */

.history-tab-wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.history-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.history-tab-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.history-tab-count {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.history-tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* History item with player column prepended */
.history-item-global {
  grid-template-columns: 130px 44px 1fr auto auto auto auto auto;
}

.history-player-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.history-player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background: var(--bg-base);
}

.history-player-avatar-emoji {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.history-player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  text-transform: uppercase;
}

.history-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

.modal-footer {
  padding: 0 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delete-btn {
  background: rgba(232,64,87,0.10);
  border: 1px solid rgba(232,64,87,0.35);
  border-radius: var(--radius);
  padding: 8px 16px;
  color: var(--loss);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}

.delete-btn:hover {
  background: rgba(232,64,87,0.20);
  border-color: var(--loss);
}

.delete-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.edit-btn {
  background: rgba(74,158,255,0.10);
  border: 1px solid rgba(74,158,255,0.35);
  border-radius: var(--radius);
  padding: 8px 16px;
  color: var(--blue-team);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}

.edit-btn:hover {
  background: rgba(74,158,255,0.20);
  border-color: var(--blue-team);
}

/* ---- Add modal ---- */
.add-modal {
  max-width: 500px;
  padding: 32px 28px 28px;
}

.add-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.add-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.add-example {
  color: var(--gold);
  font-family: monospace;
}

.add-form { display: flex; gap: 10px; }

.add-input {
  flex: 1;
  font-family: monospace !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

.add-submit-btn {
  background: rgba(200,144,48,0.15);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 10px 20px;
  color: var(--gold-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}

.add-submit-btn:hover:not(:disabled) {
  background: rgba(200,144,48,0.25);
  border-color: var(--gold);
}

.add-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--loss);
  background: rgba(232,64,87,0.10);
  border: 1px solid rgba(232,64,87,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
}

/* ---- Rank cell with LPT score ---- */
.rank-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rank-lpt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
  opacity: 0.8;
}

/* ---- Account column ---- */
.col-account { width: 160px; }

.account-cell {
  vertical-align: middle;
}

.account-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--blue-team);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.account-link:hover {
  color: #7fc3ff;
  text-decoration: underline;
}

.account-plain {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---- Team column ---- */
.col-team { width: 100px; text-align: center; }
.team-cell { text-align: center; }

/* ---- Live game column ---- */
.col-live  { width: 60px; text-align: center; }
.live-cell { text-align: center; }

/* ---- Streak column ---- */
.col-streak  { width: 200px; text-align: center; }

.streak-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  opacity: 0;
  margin-left: 5px;
  padding: 1px 3px;
  border-radius: 3px;
  transition: opacity 0.2s;
  vertical-align: middle;
  line-height: 1;
  color: var(--text-muted);
}
.col-streak:hover .streak-toggle-btn {
  opacity: 0.4;
}
.streak-toggle-btn:hover {
  opacity: 1 !important;
  background: rgba(255,255,255,0.07);
}

.streak-col-hidden .streak-cell {
  display: none;
}

.streak-col-hidden .col-streak {
  width: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  overflow: hidden;
}

.streak-col-hidden .streak-header-text {
  display: none;
}

.streak-col-hidden .streak-toggle-btn {
  opacity: 0.5 !important;
  margin-left: 0 !important;
}
.streak-cell { text-align: center; padding: 4px 8px; }

.streak-loading { color: var(--text-muted); font-size: 12px; }

.streak-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.streak-icon-wrap {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.streak-icon-wrap.streak-win  { border-color: var(--win); }
.streak-icon-wrap.streak-loss { border-color: var(--loss); }

.streak-champ-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: cover;
}

.live-dash { color: var(--text-muted); font-size: 13px; }

.live-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-champ-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 2px solid var(--win);
  object-fit: cover;
  display: block;
}

.live-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--win);
  border: 2px solid var(--bg-base);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-lp-change {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.live-lp-change.pos  { color: var(--win); }
.live-lp-change.neg  { color: var(--loss); }
.live-lp-change.zero { color: var(--text-muted); }

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}



.team-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-badge.team-blue {
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.35);
  color: var(--blue-team);
}

.team-badge.team-red {
  background: rgba(255,64,64,0.12);
  border: 1px solid rgba(255,64,64,0.35);
  color: var(--red-team);
}

.team-badge.team-gold {
  background: rgba(200,144,48,0.12);
  border: 1px solid rgba(200,144,48,0.35);
  color: var(--gold-light);
}

.team-none { color: var(--text-muted); }

/* ---- Row team color indicator ---- */
tr.row-team-blue td:first-child  { border-left: 3px solid rgba(74,158,255,0.7); }
tr.row-team-red  td:first-child  { border-left: 3px solid rgba(255,64,64,0.7); }
tr.row-team-gold td:first-child  { border-left: 3px solid rgba(200,144,48,0.7); }

/* ---- Add player form redesign ---- */
.add-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.add-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-field-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.add-required { color: var(--loss); margin-left: 2px; }
.add-optional { color: var(--text-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }

.add-input-mono {
  font-family: monospace !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

.add-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23334050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px !important;
}

.add-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.add-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---- Avatar upload ---- */
.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-upload-area {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed var(--border-accent);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-upload-area:hover {
  border-color: var(--gold-dim);
  background: rgba(200,144,48,0.06);
}

.avatar-file-input { display: none; }

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-upload-placeholder {
  font-size: 26px;
  opacity: 0.45;
  pointer-events: none;
}

.avatar-upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .navbar {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .nav-links { flex: none; }
  .nav-logo  { order: -1; width: 100%; justify-content: center; }
}

/* ── 640 px — tablet portrait ───────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 14px 12px 60px; }
  .sort-btn { min-width: 72px; padding: 6px 10px; }
}

/* ── 560 px — large phone ───────────────────────────────── */
@media (max-width: 560px) {
  .controls { flex-direction: column; align-items: stretch; }
  .sort-buttons { justify-content: center; flex-wrap: wrap; gap: 6px; }

  /* Slide-up sheet modals */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .add-modal {
    border-radius: 14px 14px 0 0;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px 20px;
  }

  .modal-header  { flex-direction: column; text-align: center; padding: 20px 16px 14px; }
  .modal-stats   { justify-content: center; }
  .modal-history { padding: 14px 14px 20px; }
  .modal-footer  { padding: 0 14px 18px; }

  /* Compact table cells */
  .leaderboard th,
  .leaderboard td { padding: 10px 8px; }
  .player-avatar  { width: 30px; height: 30px; font-size: 14px; }
  .player-cell    { gap: 8px; }
  .player-name    { font-size: 13px; }

  .history-item { grid-template-columns: 36px 1fr auto auto; }
  .history-item-global { grid-template-columns: 90px 36px 1fr auto; }
  .history-duration, .history-lp-change, .history-cs, .history-date { display: none; }
  .history-item-global .history-cs,
  .history-item-global .history-lp-change { display: none; }
}

/* ── 480 px — phone ─────────────────────────────────────── */
@media (max-width: 480px) {
  /* Navbar */
  .navbar { padding: 8px 10px; gap: 6px; }
  .nav-item { padding: 6px 10px; }
  .nav-fr   { font-size: 11px; letter-spacing: 1px; }
  .nav-sync { display: none; }                /* hide sync label */
  .logo-main    { font-size: 22px; }
  .logo-top     { font-size: 10px; letter-spacing: 2px; }
  .logo-emblem  { width: 34px; height: 34px; }
  .nav-logo     { padding: 6px 14px; gap: 8px; }
  .nav-admin-btn,
  .nav-add-btn  { padding: 6px 10px; }

  /* Container */
  .container { padding: 10px 8px 56px; }

  /* Narrow tier column */
  .col-tier { width: 120px; }

  .leaderboard th,
  .leaderboard td { padding: 9px 6px; }

  .lp-value, .lpt-value, .games-value { font-size: 13px; }
  .tier-badge   { font-size: 11px; }
  .tier-dot     { width: 6px; height: 6px; }

  /* Sort buttons */
  .sort-btn      { min-width: 60px; padding: 5px 8px; }
  .sort-btn .btn-fr { font-size: 10px; }

  /* History tab */
  .history-tab-wrap { padding: 0 8px 40px; }
  .history-tab-header { flex-direction: column; gap: 4px; }

  /* LP chart */
  .lp-chart-container { height: 220px; }
}

/* ── 400 px — small phone ───────────────────────────────── */
@media (max-width: 400px) {
  .nav-links     { gap: 2px; }
  .nav-item      { padding: 5px 7px; }
  .nav-fr        { font-size: 10px; }

  .leaderboard th,
  .leaderboard td { padding: 8px 5px; }

  .rank-num       { font-size: 14px; }
  .rank-num.top1  { font-size: 17px; }
  .rank-num.top2,
  .rank-num.top3  { font-size: 15px; }

  .player-avatar  { width: 26px; height: 26px; font-size: 12px; }
  .player-name    { font-size: 12px; }
  .col-tier       { width: 100px; }
  .tier-badge     { font-size: 10px; gap: 5px; }

  .sort-buttons   { gap: 4px; }
  .sort-btn       { min-width: 54px; }
  .sort-btn .btn-fr { font-size: 9px; }

  .lp-chart-container { height: 180px; }
  .lp-mode-btns   { flex-wrap: wrap; gap: 6px; }
}

/* ============================================================
   STATS PAGE
   ============================================================ */

.stats-content-wrap {
  padding: 24px 0 48px;
}

/* Global counters */
.stats-globals {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stats-global-card {
  flex: 1;
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
}

.stats-global-icon { font-size: 24px; margin-bottom: 8px; }

.stats-global-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
  line-height: 1;
}

.stats-global-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Section title */
.stats-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-top: 36px;
}

/* Rankings grid */
.stats-rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}

.stat-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-card-icon { font-size: 16px; }

.stat-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

/* Ranking list inside card */
.srank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-accent) transparent;
  padding-right: 2px;
}

.srank-list::-webkit-scrollbar { width: 4px; }
.srank-list::-webkit-scrollbar-track { background: transparent; }
.srank-list::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 2px; }

.srank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  font-size: 12px;
}

.srank-item.srank-first {
  background: rgba(200,144,48,0.12);
  border: 1px solid rgba(200,144,48,0.25);
}

.srank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.srank-item.srank-first .srank-num { color: var(--gold-light); }

.srank-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srank-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.srank-val.pos     { color: var(--win); }
.srank-val.neg     { color: var(--loss); }
.srank-val.neutral { color: var(--text-secondary); }

/* Teams grid */
.stats-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
}

.stat-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.stat-team-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stat-team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 50px;
}

.stat-team-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.stat-team-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.stat-team-players {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stats-globals { flex-direction: column; }
  .stats-rankings-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .stats-rankings-grid { grid-template-columns: 1fr; }
}

/* LP Progression chart */
.lp-progression-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.lp-mode-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.lp-mode-btn {
  padding: 6px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-mode-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.lp-mode-btn.lp-mode-active {
  background: var(--blue-team);
  border-color: var(--blue-team);
  color: #fff;
}

/* Custom LP legend */
.lp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.lp-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}

.lp-legend-item:hover { border-color: var(--border-accent); }

.lp-legend-item.lp-legend-hidden { opacity: 0.35; }

.lp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-legend-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}
.lp-chart-container {
  height: 300px;
  position: relative;
}
.lp-no-data {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
}

/* ---- Hall of Fame ---- */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.hof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hof-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hof-card-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.hof-icon { font-size: 14px; }

.hof-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}

.hof-body {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.hof-champ-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  object-fit: cover;
  flex-shrink: 0;
}

.hof-info {
  flex: 1;
  min-width: 0;
}

.hof-champ-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-champ-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hof-stats-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.hof-kda   { color: var(--text-primary); }
.hof-sep   { color: var(--text-muted); }
.hof-stat  { color: var(--text-secondary); }

.hof-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.hof-result {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hof-lp {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hof-lp.pos  { color: var(--win); }
.hof-lp.neg  { color: var(--loss); }
.hof-lp.zero { color: var(--text-muted); }

.hof-player {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

