/* =========================================================
   TELA DE JOGADORES ENRIQUECIDA - EA FC / FOOTBALL MANAGER STYLE
   ========================================================= */

.jr-root {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: calc(100vh - 120px);
  background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #111c33 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.6);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.ea-fut-photo-fallback-initials {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffd76a !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 76px !important;
  font-weight: 900 !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9) !important;
  user-select: none !important;
  margin: 0 auto !important;
}

/* ========= COLUNA ESQUERDA ========= */
.jr-left-panel {
  width: 340px;
  min-width: 300px;
  max-width: 360px;
  background: linear-gradient(180deg, #0b1220 0%, #0d1827 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
}

.jr-panel-header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(59,130,246,0.08) 100%);
}

.jr-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
}

.jr-badge-count {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.jr-searchbar-wrap {
  padding: 12px 16px 8px;
}

.jr-search-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.jr-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: rgba(30, 41, 59, 0.95);
}

.jr-search-input::placeholder {
  color: #64748b;
}

.jr-filters-row {
  display: flex;
  gap: 8px;
  padding: 4px 16px 12px;
  flex-wrap: wrap;
}

.jr-filter {
  flex: 1;
  min-width: 110px;
  padding: 7px 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.8rem;
  outline: none;
}

.jr-filter:focus {
  border-color: #6366f1;
}

.jr-loading {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.jr-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jr-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(71, 85, 105, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.jr-list-item:hover {
  background: linear-gradient(90deg, rgba(59,130,246,0.15) 0%, rgba(168,85,247,0.1) 100%);
  border-color: rgba(59,130,246,0.5);
  transform: translateX(3px);
}

.jr-list-item.active {
  background: linear-gradient(90deg, rgba(14,165,233,0.25) 0%, rgba(59,130,246,0.18) 100%);
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 6px 20px -6px rgba(14,165,233,0.4);
}

.jr-list-item.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: linear-gradient(180deg, #0ea5e9, #a855f7);
  border-radius: 2px;
}

.jr-overall-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.jr-overall-badge.jr-ovr-gold {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
  border: 1px solid rgba(250, 204, 21, 0.6);
}
.jr-overall-badge.jr-ovr-purple {
  background: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #c084fc 100%);
  border: 1px solid rgba(192, 132, 252, 0.55);
}
.jr-overall-badge.jr-ovr-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  border: 1px solid rgba(96, 165, 250, 0.5);
}
.jr-overall-badge.jr-ovr-teal {
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 50%, #22d3ee 100%);
  border: 1px solid rgba(34, 211, 238, 0.5);
}
.jr-overall-badge.jr-ovr-green {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #4ade80 100%);
  border: 1px solid rgba(74, 222, 128, 0.5);
}
.jr-overall-badge.jr-ovr-grey {
  background: linear-gradient(135deg, #334155 0%, #64748b 100%);
  border: 1px solid rgba(100, 116, 139, 0.45);
}

.jr-avatar-sm,
.jr-avatar-xs {
  border-radius: 50%;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(148,163,184,0.3);
}

.jr-avatar-sm {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.jr-avatar-xs {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.jr-avatar-sm img,
.jr-avatar-xs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-list-info {
  flex: 1;
  min-width: 0;
}

.jr-list-name {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-list-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
  flex-wrap: wrap;
}

.jr-position-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.jr-position-editor-label {
  font-weight: 700;
  margin-right: 3px;
}

.jr-position-editor button {
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  padding: 5px 9px;
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  cursor: pointer;
}

.jr-position-editor button.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #fff;
}

.jr-position-editor button:disabled { opacity: 0.6; cursor: wait; }
.jr-position-editor small { color: #86efac; }

.jr-attributes-widget {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.jr-score-version {
  float: right;
  color: #60a5fa;
  font-size: 0.7rem;
  font-weight: 700;
}

.jr-role-scores,
.jr-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.jr-role-score,
.jr-insight {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.45);
}

.jr-role-score.selected { border-color: #38bdf8; background: rgba(14, 165, 233, 0.14); }
.jr-role-score span, .jr-insight span { color: #cbd5e1; font-size: 0.72rem; }
.jr-role-score strong { color: #f8fafc; font-size: 1.35rem; }
.jr-role-score small, .jr-insight small { color: #94a3b8; font-size: 0.68rem; }
.jr-insights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jr-insight strong { color: #86efac; font-size: 1.15rem; }
.jr-fc-chart-card { min-width: 0; }

.jr-attributes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}

.jr-attribute-top {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.jr-attribute-top strong { color: #f8fafc; font-size: 1rem; }
.jr-attribute-bar { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #1e293b; }
.jr-attribute-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #38bdf8); }
.jr-defensive-highlight { border-color: rgba(34, 197, 94, 0.25); }

@media (max-width: 640px) {
  .jr-attributes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-role-scores { grid-template-columns: 1fr; }
  .jr-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.jr-pos-tag {
  padding: 1px 7px;
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
}

.jr-sub-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #475569;
}

.jr-list-stats-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
}

.jr-stat-goals {
  color: #4ade80;
}

.jr-stat-assists {
  color: #fbbf24;
}

/* ========= COLUNA DIREITA (DASHBOARD) ========= */
.jr-right-panel {
  flex: 1;
  min-width: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #0f172a;
}

.jr-right-panel::-webkit-scrollbar {
  width: 10px;
}
.jr-right-panel::-webkit-scrollbar-track {
  background: #0f172a;
}
.jr-right-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 6px;
}

.jr-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 40px;
}

.jr-empty-card {
  text-align: center;
  max-width: 480px;
  padding: 40px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px dashed rgba(71, 85, 105, 0.5);
  border-radius: 16px;
  color: #cbd5e1;
}

.jr-empty-card.jr-error {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
}

.jr-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(59,130,246,0.3));
}

.jr-empty-card h3 {
  color: #f1f5f9;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ========= DASHBOARD GERAL ========= */
.jr-dashboard {
  padding: 20px 26px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jr-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.jr-row-top {
  grid-template-columns: minmax(340px, 400px) 1fr;
  align-items: start;
}

/* ===== CARD FIFA ===== */
.jr-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.jr-fut-card {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 3 / 4.2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px -8px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
}

.jr-fut-card:hover {
  transform: perspective(900px) rotateY(0) rotateX(0) translateY(-3px);
  box-shadow: 0 20px 50px -6px rgba(59,130,246,0.4);
}

.jr-fut-card.variant-bcl { filter: saturate(1.2); }
.jr-fut-card.variant-jcl { filter: saturate(1.1) hue-rotate(-10deg); }
.jr-fut-card.variant-mundialito { filter: saturate(1.3); }

.jr-card-top {
  position: absolute;
  top: 22px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  text-align: center;
  line-height: 1;
}

.jr-card-overall {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: #0f172a;
  text-shadow: 0 2px 6px rgba(255,255,255,0.4);
}

.jr-card-pos {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  margin-top: -2px;
  opacity: 0.85;
}

.jr-card-photo-wrap {
  position: absolute;
  top: 14%;
  left: 18%;
  right: 18%;
  height: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.jr-card-photo {
  width: auto;
  height: 100%;
  max-width: 160%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.45));
}

.jr-card-name {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-card-name::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -6px;
  height: 1px;
  background: rgba(15,23,42,0.25);
}

.jr-card-attrs {
  position: absolute;
  top: 68%;
  left: 10%;
  right: 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 8px;
  padding: 10px 6px;
}

.jr-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.jr-attr-num {
  font-size: 0.98rem;
  font-weight: 900;
  color: #0f172a;
}

.jr-attr-label {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15,23,42,0.7);
  margin-top: 2px;
}

.jr-card-stats-bar {
  position: absolute;
  bottom: 6%;
  left: 8%;
  right: 8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  font-size: 0.55rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* Variante selector */
.jr-variant-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 8px 10px;
  border-radius: 10px;
  width: 340px;
  max-width: 100%;
}

.jr-variant-selector.jr-single-var {
  justify-content: center;
  gap: 10px;
}

.jr-var-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.4);
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.jr-var-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  transform: scale(1.05);
}

.jr-var-info {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.jr-var-name {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-var-counter {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.jr-var-tag {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(99,102,241,0.25));
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}

.jr-rarity-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
}

/* ===== STATS PRINCIPAIS ===== */
.jr-main-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jr-stats-header {
  padding: 4px 2px;
  border-bottom: 1px solid rgba(99,102,241,0.15);
}

.jr-player-name {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #f8fafc 0%, #93c5fd 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.jr-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.jr-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jr-badge-overall {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}

.jr-badge-pos {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}

.jr-badge-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
}

.jr-badge-trophy {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(245, 158, 11, 0.15));
  color: #fcd34d;
  border: 1px solid rgba(250,204,21,0.35);
}

.jr-badge-presence {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
}

.jr-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.jr-stat-card {
  background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(15,23,42,0.8));
  border: 1px solid rgba(71,85,105,0.35);
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.jr-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent,#3b82f6), var(--accent2,#a855f7));
  opacity: 0.7;
}

.jr-stat-pontos { --accent: #3b82f6; --accent2: #0ea5e9; }
.jr-stat-jogos { --accent: #6366f1; --accent2: #8b5cf6; }
.jr-stat-gols { --accent: #22c55e; --accent2: #16a34a; }
.jr-stat-assist { --accent: #eab308; --accent2: #f59e0b; }
.jr-stat-vit { --accent: #14b8a6; --accent2: #10b981; }
.jr-stat-der { --accent: #ef4444; --accent2: #dc2626; }
.jr-stat-emp { --accent: #64748b; --accent2: #94a3b8; }
.jr-stat-winrate { --accent: #a855f7; --accent2: #d946ef; }

.jr-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.45);
}

.jr-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.jr-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ===== SCORE BREAKDOWN ===== */
.jr-score-box {
  background: linear-gradient(135deg, rgba(30,41,59,0.6), rgba(15,23,42,0.7));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.jr-score-title {
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.jr-score-media-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.jr-media-badge {
  background: linear-gradient(180deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border: 1px solid rgba(59,130,246,0.3);
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
}

.jr-media-badge.jr-media-voto {
  background: linear-gradient(180deg, rgba(168,85,247,0.18), rgba(168,85,247,0.05));
  border-color: rgba(168,85,247,0.35);
}

.jr-media-badge.jr-media-part {
  background: linear-gradient(180deg, rgba(234,179,8,0.18), rgba(234,179,8,0.05));
  border-color: rgba(234,179,8,0.35);
}

.jr-media-badge.jr-media-goljogo {
  background: linear-gradient(180deg, rgba(34,197,94,0.18), rgba(34,197,94,0.05));
  border-color: rgba(34,197,94,0.35);
}

.jr-media-badge.jr-media-astjogo {
  background: linear-gradient(180deg, rgba(20,184,166,0.18), rgba(20,184,166,0.05));
  border-color: rgba(20,184,166,0.35);
}

.jr-media-badge.jr-media-ptsjogo {
  background: linear-gradient(180deg, rgba(99,102,241,0.18), rgba(99,102,241,0.05));
  border-color: rgba(99,102,241,0.35);
}

.jr-media-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1;
}

.jr-media-label {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.jr-windows-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.jr-window-card {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(71,85,105,0.3);
  border-radius: 10px;
  padding: 10px 12px;
}

.jr-window-title {
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jr-window-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px 8px;
  font-size: 0.72rem;
}

.jr-w-label {
  display: block;
  color: #64748b;
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jr-w-val {
  display: block;
  color: #f1f5f9;
  font-weight: 800;
  font-size: 0.88rem;
}

/* ===== WIDGETS BASE ===== */
.jr-widget {
  background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.8));
  border: 1px solid rgba(71,85,105,0.3);
  border-radius: 14px;
  padding: 16px 18px;
}

.jr-widget-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.jr-night-peak {
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(234,179,8,0.14));
  color: #fb923c;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.jr-widget-wide { flex: 1 1 100%; }
.jr-subtle-muted {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 6px;
}

/* ===== NOITES e JOGOS (por data) ===== */
.jr-nights-games {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.jr-night-row {
  background: linear-gradient(135deg, rgba(15,23,42,0.55), rgba(30,41,59,0.55));
  border: 1px solid rgba(71,85,105,0.28);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.jr-night-row:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-1px);
}

.jr-night-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(71,85,105,0.25);
}

.jr-night-date {
  font-weight: 700;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.9rem;
}

.jr-night-name {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.8rem;
  flex: 1;
  min-width: 120px;
}

.jr-night-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jr-night-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.jr-night-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  background: rgba(15,23,42,0.4);
  border-radius: 8px;
  border: 1px solid rgba(71,85,105,0.18);
}
.jr-night-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.jr-night-stat-val {
  font-weight: 800;
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-top: 2px;
}
.jr-val-goal { color: #fb923c; }
.jr-val-assist { color: #22d3ee; }
.jr-val-win { color: #4ade80; }
.jr-val-loss { color: #f87171; }

@media (max-width: 600px) {
  .jr-night-stats { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .jr-night-stat { padding: 5px 2px; }
  .jr-night-stat-val { font-size: 0.95rem; }
}

/* ===== CHARTS ===== */
.jr-chart-card {
  background: linear-gradient(135deg, rgba(30,41,59,0.6), rgba(15,23,42,0.75));
  border: 1px solid rgba(71,85,105,0.3);
  border-radius: 14px;
  padding: 12px 14px;
}

.jr-chart-wrap {
  position: relative;
  width: 100%;
}

/* ===== PRESENÇA ===== */
.jr-presence-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jr-presence-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(71,85,105,0.25);
  padding: 12px 14px;
  border-radius: 10px;
}

.jr-presence-item.jr-presence-full {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.jr-presence-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.jr-presence-num {
  font-weight: 900;
  color: #f1f5f9;
  font-size: 1.05rem;
}

.jr-presence-label {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
}

.jr-presence-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
}

.jr-presence-label-row strong {
  color: #10b981;
  font-weight: 800;
  font-size: 1rem;
}

.jr-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.35);
  overflow: hidden;
  position: relative;
}

.jr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #22c55e 50%, #84cc16 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

.jr-presence-footnote {
  font-size: 0.7rem;
  color: #64748b;
}

/* ===== CORES ===== */
.jr-colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.jr-color-card {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(71,85,105,0.3);
  border-left: 5px solid #fff;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.jr-color-card:hover {
  transform: translateY(-2px);
}

.jr-color-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.jr-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.jr-color-name {
  flex: 1;
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.82rem;
}

.jr-color-games {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.jr-color-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.jr-color-stats .jr-win { color: #4ade80; }
.jr-color-stats .jr-loss { color: #f87171; }
.jr-color-stats .jr-draw { color: #94a3b8; }

.jr-color-stats2 {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.jr-color-winrate {
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59,130,246,0.12);
  padding: 3px 8px;
  border-radius: 6px;
  text-align: center;
}

.jr-color-sumary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.72rem;
  background: rgba(15,23,42,0.5);
  padding: 10px 12px;
  border-radius: 10px;
}

.jr-color-sum {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 600;
}

.jr-color-sum strong {
  color: #f1f5f9;
  font-weight: 800;
}

.jr-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* ===== PARCERIAS ===== */
.jr-empty-small {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  background: rgba(15,23,42,0.4);
  border-radius: 10px;
  border: 1px dashed rgba(71,85,105,0.3);
}

.jr-partners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jr-partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(15,23,42,0.45);
  border: 1px solid rgba(71,85,105,0.2);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.jr-partner-row:hover {
  background: rgba(30,41,59,0.7);
}

.jr-rank {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: rgba(71,85,105,0.4);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jr-rank-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 3px 8px rgba(245,158,11,0.3);
}

.jr-rank-gray {
  background: linear-gradient(135deg, #475569, #334155);
  color: #cbd5e1;
}

.jr-rank-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.jr-rank-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.jr-partner-name {
  flex: 1;
  min-width: 0;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-partner-counts {
  display: flex;
  gap: 8px;
  align-items: center;
}

.jr-count-together {
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.75rem;
}

.jr-count-together-sub {
  color: #64748b;
  font-size: 0.68rem;
}

.jr-count-win {
  color: #4ade80;
  font-weight: 800;
  font-size: 0.78rem;
}

.jr-count-loss {
  color: #f87171;
  font-weight: 800;
  font-size: 0.78rem;
}

.jr-count-assist {
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ===== ASSIST COLUMNS ===== */
.jr-assists-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jr-assist-col {
  background: rgba(15,23,42,0.4);
  border: 1px solid rgba(71,85,105,0.2);
  border-radius: 10px;
  padding: 10px;
}

.jr-assist-title {
  margin: 0 0 8px 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 800;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(71,85,105,0.3);
}

/* ===== MELHORES NOITES ===== */
.jr-nights-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.jr-nights-table th {
  background: rgba(15,23,42,0.7);
  color: #94a3b8;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(71,85,105,0.3);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.jr-nights-table th:first-child { border-top-left-radius: 8px; }
.jr-nights-table th:last-child { border-top-right-radius: 8px; }

.jr-nights-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(71,85,105,0.15);
  color: #cbd5e1;
  font-weight: 600;
}

.jr-nights-table tr.jr-top-night td {
  background: linear-gradient(90deg, rgba(250,204,21,0.12), transparent);
  color: #fde68a;
  font-weight: 700;
}

.jr-nights-table .jr-date { font-family: monospace; color: #94a3b8; }
.jr-nights-table .jr-pts strong { color: #38bdf8; font-size: 0.9rem; }
.jr-nights-table .jr-win { color: #4ade80; }
.jr-nights-table .jr-loss { color: #f87171; }
.jr-nights-table .jr-tipo { color: #a78bfa; font-weight: 600; }

/* ===== TÍTULOS ===== */
.jr-titulos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.jr-titulo-count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.jr-tc-card {
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.jr-tc-card:hover { transform: translateY(-3px); }

.jr-tc-bcl {
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(14,165,233,0.12));
  border: 1px solid rgba(59,130,246,0.4);
}

.jr-tc-jcl {
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(139,92,246,0.12));
  border: 1px solid rgba(168,85,247,0.4);
}

.jr-tc-mundialito {
  background: linear-gradient(135deg, rgba(250,204,21,0.22), rgba(245,158,11,0.12));
  border: 1px solid rgba(250,204,21,0.4);
}

.jr-tc-total {
  background: linear-gradient(135deg, rgba(20,184,166,0.22), rgba(16,185,129,0.12));
  border: 1px solid rgba(20,184,166,0.4);
}

.jr-tc-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1;
}

.jr-tc-label {
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
  text-transform: uppercase;
}

.jr-titulos-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}

.jr-titulo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(15,23,42,0.5);
  border-radius: 8px;
  font-size: 0.78rem;
  border-left: 3px solid #f59e0b;
}

.jr-trofeu {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(245,158,11,0.3));
}

.jr-t-camp {
  flex: 1;
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-t-data {
  color: #94a3b8;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ===== CARTAS ATIVAS ===== */
.jr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.jr-carta-ativa {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(71,85,105,0.3);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.jr-carta-ativa:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 10px 20px -6px rgba(99,102,241,0.3);
}

.jr-carta-ativa.active {
  border-color: rgba(250,204,21,0.7);
  box-shadow: 0 0 0 2px rgba(250,204,21,0.25), 0 12px 24px -8px rgba(250,204,21,0.35);
}

.jr-carta-img {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
  overflow: hidden;
}

.jr-carta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jr-carta-info {
  padding: 8px 10px;
  text-align: center;
}

.jr-carta-code {
  font-weight: 800;
  color: #f1f5f9;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jr-carta-rar {
  font-size: 0.62rem;
  color: #f59e0b;
  font-weight: 700;
  margin-top: 3px;
}

/* ===== FOOTER ===== */
.jr-footer-note {
  margin-top: 10px;
  text-align: center;
  color: #475569;
  font-size: 0.7rem;
  padding: 10px;
  border-top: 1px dashed rgba(71,85,105,0.25);
}

/* ========= RESPONSIVO / MOBILE ========= */
@media (max-width: 1100px) {
  .jr-row-top { grid-template-columns: 1fr; }
  .jr-card-container { margin: 0 auto; }
  .jr-score-media-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .jr-root { flex-direction: column; border-radius: 8px; }
  .jr-left-panel {
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    border-right: none;
    border-bottom: 1px solid rgba(59,130,246,0.2);
  }
  .jr-right-panel { max-height: none; }
  .jr-row { grid-template-columns: 1fr; }
  .jr-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-player-name { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .jr-dashboard { padding: 14px; }
  .jr-fut-card { width: 280px; }
  .jr-variant-selector { width: 280px; }
  .jr-windows-row { grid-template-columns: 1fr; }
  .jr-score-media-row { grid-template-columns: repeat(2, 1fr); }
  .jr-assists-columns { grid-template-columns: 1fr; }
  .jr-titulo-count { grid-template-columns: repeat(2, 1fr); }
  .jr-color-sumary { grid-template-columns: 1fr; }
  .jr-panel-header { padding: 14px; }
  .jr-title { font-size: 1.05rem; }
}

/* Scrollbar lista esquerda */
.jr-list::-webkit-scrollbar { width: 6px; }
.jr-list::-webkit-scrollbar-track { background: transparent; }
.jr-list::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.3);
  border-radius: 3px;
}
.jr-list::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.5); }

/* Modal mobile big */
.jr-modal-big {
  max-width: 100% !important;
  width: calc(100vw - 20px) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto;
}

/* =========================================================
   SEÇÃO RECORDES & MARCAS HISTÓRICAS DO JOGADOR
   ========================================================= */
.jr-records-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.jr-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.jr-records-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jr-duelo-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.35); }
  100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
}

.jr-ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.jr-rank-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.jr-rank-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #00f59b;
}

.jr-rank-val.top3 {
  color: #fbbf24;
}

.jr-rank-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 2px;
}

.jr-milestone-item {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.jr-milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.jr-milestone-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}

.jr-milestone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #00f59b);
  border-radius: 3px;
}

