/* === ESTILO BASE === */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #141414;
  color: #e5e5e5;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* === ENCABEZADO === */
.header-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.header-logos .logo {
  max-width: 800px;
  margin-bottom: 10px;
}

.header-logos .ranking {
  max-width: 250px;
}

/* === TABLA === */
table {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: separate;
  border-spacing: 0 8px;
}

thead th {
  background: #3b014f;
  color: #fff;
  padding: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

tbody tr {
  background: #18191c;
  transition: all 0.25s ease;
  border-radius: 10px;
}

tbody tr:hover {
  background: #141414;
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(178, 0, 255, 0.3);
}

td {
  padding: 12px 10px;
  text-align: center;
  color: #e5e5e5;
}

td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* === SKINS SIN BORDE === */
.skin {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.skin:hover {
  transform: scale(1.15);
}

/* === TOP 3 === */
tr.top1 { background: linear-gradient(90deg, rgba(255,215,0,0.2), #18191c); border-left: 4px solid #ffd700; }
tr.top2 { background: linear-gradient(90deg, rgba(192,192,192,0.2), #18191c); border-left: 4px solid #c0c0c0; }
tr.top3 { background: linear-gradient(90deg, rgba(205,127,50,0.2), #18191c); border-left: 4px solid #cd7f32; }

/* === FOOTER === */
footer {
  margin-top: 30px;
  padding: 10px;
  background: #131214;
  font-size: 0.9rem;
}

/* === MODAL COMPACTO === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 10px;
  overflow-y: auto;
}

.modal-content {
  background: #1b1b1d;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(178,0,255,0.5);
  width: 100%;
  max-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  animation: aparecer 0.25s ease;
}

@keyframes aparecer {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 780px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-width: 92%;
    padding: 14px;
  }
}

.close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 26px;
  color: #bbb;
  cursor: pointer;
}
.close:hover { color: #fff; }

.modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-body {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
}

.modal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#statsChart {
  width: 100% !important;
  height: 100% !important;
}

.stats-values {
  text-align: left;
  color: #ddd;
  width: 100%;
  max-width: 320px;
}

.stats-values p {
  margin: 4px 0;
}

@media (max-width: 420px) {
  .player-body { max-width: 120px; }
  .close { font-size: 22px; right: 8px; top: 6px; }
}
/* === Protección visual adicional === */
body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
