/* ================= "Arena" side panel (wide screens, left of the matches) ================= */
.side-panel { display: none; }

@media (min-width: 1760px) {
  .side-panel {
    position: fixed; z-index: 3; top: 5.6rem;
    left: max(16px, calc((100vw - 1220px) / 2 - 340px));
    width: 300px; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: thin;
    display: flex; flex-direction: column; gap: .75rem;
  }
}

.sp-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 .2rem; }
.sp-head b { font-size: 1.05rem; letter-spacing: .02em; }
.sp-head span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); }

.sp-section {
  padding: .8rem .9rem .7rem; border-radius: var(--radius, 14px);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sp-section h3 {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.sp-section h3 .ui-ico { width: 15px; height: 15px; }
.sp-empty { margin: 0; font-size: .82rem; color: var(--muted); }
.sp-more { display: block; margin-top: .45rem; font-size: .78rem; font-weight: 700; color: var(--accent-strong); text-decoration: none; }
.sp-more:hover { text-decoration: underline; }

.sp-top, .sp-hot, .sp-wins { list-style: none; margin: 0; padding: 0; }
.sp-top li, .sp-wins li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; align-items: center;
  padding: .38rem 0; border-top: 1px solid rgba(255, 255, 255, .05); font-size: .88rem;
}
.sp-top li:first-child, .sp-wins li:first-child { border-top: none; }
.sp-rank {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; background: rgba(255, 255, 255, .07); color: var(--muted);
}
.sp-rank.gold { background: rgba(250, 204, 21, .2); color: #facc15; }
.sp-rank.silver { background: rgba(203, 213, 225, .18); color: #e2e8f0; }
.sp-rank.bronze { background: rgba(205, 127, 50, .22); color: #e7a06b; }
.sp-player { display: flex; align-items: center; gap: .35rem; min-width: 0; color: var(--text); text-decoration: none; }
.sp-player .uname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-player:hover .uname { text-decoration: underline; }
.sp-player .lvl-pill { min-width: 22px; height: 18px; font-size: .68rem; flex: none; }
.sp-top b, .sp-wins b { font-variant-numeric: tabular-nums; font-size: .85rem; }

.sp-hot li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.sp-hot a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .5rem; padding: .45rem 0; color: var(--text); text-decoration: none; }
.sp-hot a:hover .sp-teams b { color: var(--accent-strong); }
.sp-teams { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; }
.sp-teams b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sp-meta { grid-column: 1; font-size: .72rem; color: var(--muted); }
.sp-picks {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  padding: .15rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 800;
  background: rgba(250, 204, 21, .14); color: #facc15; white-space: nowrap;
}
.sp-wins li { grid-template-columns: minmax(0, 1fr) auto; }
.sp-wins .sp-player { grid-column: 1; }
.sp-wins .sp-meta { grid-column: 1; grid-row: 2; }
.sp-wins b { grid-column: 2; grid-row: 1 / 3; }

.sp-invite {
  display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: var(--radius, 14px);
  text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(34, 197, 94, .1));
  border: 1px solid rgba(250, 204, 21, .35);
}
.sp-invite:hover { border-color: rgba(250, 204, 21, .6); }
.sp-invite .ui-ico { width: 26px; height: 26px; }
.sp-invite span { display: flex; flex-direction: column; }
.sp-invite small { color: var(--muted); font-size: .76rem; }
