/* UESF v2.4.2 · plantilla y ficha arbitral */
.barca-photo .player-silhouette.full-player {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 32%, rgba(47, 122, 79, .46), rgba(4, 20, 12, .96) 62%);
  color: #a8ccb5;
}
.barca-photo .player-silhouette svg {
  width: 66%;
  height: 78%;
  margin-top: 2%;
  fill: rgba(179, 216, 192, .14);
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .38));
}
.player-name > span {
  font-size: 48px;
  font-weight: 950;
  color: #ff58aa;
  text-shadow: 0 2px 0 #3d071f, 0 0 16px rgba(255, 88, 170, .65);
}
.player-profile-identity p b {
  background: #ff58aa;
  color: #16040d;
  box-shadow: 0 0 20px rgba(255, 88, 170, .35);
}
.hover-stats .stat-goals b {
  color: #52e487;
  font-weight: 950;
  text-shadow: 0 0 14px rgba(82, 228, 135, .48);
}
.hover-stats .stat-goals small {
  color: #86f0ad;
  font-weight: 900;
}
.hover-stats .stat-reds b { color: #ff5a62; font-weight: 950; }
.hover-stats .stat-yellows b { color: #ffe11a; font-weight: 950; }
.barca-player {
  border: 3px solid transparent;
  border-radius: 4px;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.barca-player:hover,
.barca-player:focus {
  z-index: 4;
  transform: translateY(-7px) scale(1.015);
  border-color: #52e487;
  box-shadow: 0 0 0 5px rgba(255, 225, 26, .78), 0 24px 50px rgba(2, 46, 23, .36);
}
.barca-photo,
.barca-photo .full-player,
.barca-photo .player-silhouette { transition: transform .32s ease, filter .32s ease; }
.barca-player:hover .barca-photo,
.barca-player:focus .barca-photo { transform: scale(1.045); filter: saturate(1.12) contrast(1.04); }
.barca-player:hover .barca-photo:after,
.barca-player:focus .barca-photo:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid rgba(82, 228, 135, .95);
  box-shadow: inset 0 0 0 3px rgba(255, 225, 26, .72);
  pointer-events: none;
}

/* Los nombres de las métricas deben leerse con claridad a distancia. */
.visual-stat-values > span { font-size: 13px; line-height: 1.25; letter-spacing: .035em; }
.stat-spotlights .visual-stat-values > span { font-size: 14px; line-height: 1.25; }

.referee-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.referee-profile { overflow: hidden; padding: 0; }
.referee-profile-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: linear-gradient(125deg, #06150d, #0a6335); color: #fff; }
.referee-profile-head .bigicon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 24px; }
.referee-profile-head h3 { margin: 0 0 4px; font-size: 20px; }
.referee-profile-head small { color: #bce3ca; }
.referee-profile-body { padding: 22px 24px 25px; }
.referee-preference { margin: 0 0 18px; padding: 15px 18px; border-left: 5px solid #f2cc2c; border-radius: 0 12px 12px 0; background: #fff9d8; }
.referee-preference span, .referee-metric small { display: block; color: #607168; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.referee-preference strong { display: block; margin-top: 4px; color: #0a6b39; font-size: 19px; }
.referee-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 18px; }
.referee-summary div { padding: 13px 8px; border-radius: 11px; background: #eff6f1; text-align: center; }
.referee-summary b { display: block; color: #08783e; font-size: 21px; }
.referee-summary small { color: #69776f; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.referee-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.referee-metric { padding: 11px 12px; border: 1px solid #dbe6de; border-radius: 10px; }
.referee-metric b { display: block; margin-top: 4px; color: #15241b; font-size: 12px; overflow-wrap: anywhere; }
.referee-notes { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e0e8e2; }
.referee-notes b { color: #0a6d3a; font-size: 11px; text-transform: uppercase; }
.referee-notes p { margin: 5px 0 0; color: #536158; font-size: 12px; line-height: 1.55; }
.referee-history { margin: 18px 0 0; padding: 0; list-style: none; }
.referee-history li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #e5ebe7; font-size: 11px; }
.referee-history li span:first-child { color: #0a7c40; font-weight: 900; }
.referee-history li small { color: #6c786f; }

@media (max-width: 820px) {
  .referee-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .referee-details { grid-template-columns: 1fr; }
}

/* Estadísticas V350 separadas por primera parte, segunda parte y final. */
.statistics-period-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 7px;
  border: 1px solid #d5e3da;
  border-radius: 17px;
  background: #edf4ef;
}
.statistics-period-switch button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #53635a;
  font: 950 12px/1.15 inherit;
  letter-spacing: .045em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.statistics-period-switch button:hover { transform: translateY(-1px); color: #08783e; }
.statistics-period-switch button.active {
  background: linear-gradient(130deg, #07170e, #08783e);
  color: #fff;
  box-shadow: 0 10px 22px rgba(5, 82, 40, .2);
}
.statistics-period-panel { display: none; }
.statistics-period-panel.active { display: block; animation: stats-period-in .24s ease both; }
.stats-period-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 13px;
}
.stats-period-heading span { color: #08783e; font-size: 20px; font-weight: 950; text-transform: uppercase; }
.stats-period-heading small { color: #65736a; font-size: 11px; }
@keyframes stats-period-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) {
  .statistics-period-switch { gap: 5px; padding: 5px; }
  .statistics-period-switch button { min-height: 44px; font-size: 10px; }
  .stats-period-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}
