/* ============================================================
   smgr · css/pages/viz_valoracion_minuto.css — DISEÑO DE LA TARJETA
   capturable de "Jugador con más valoración en cada minuto"
   (visualizacion_valoracion_minuto.php). Portado 1:1 del clásico, con TODO
   scopeado bajo #captureArea. Sin `body{background}` ni reset global `*`.
   Ancho fijo 1100px (lo respeta el escalador móvil de viz.css).
   ============================================================ */

#captureArea {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 1100px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  position: relative;
}
#captureArea .header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}
#captureArea .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}
#captureArea .logo {
  width: 70px;
  height: 53px;
  background: #fff;
  border-radius: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
#captureArea .logo img { width: 100%; height: 100%; object-fit: contain; }
#captureArea .header h1 { font-size: 20px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
#captureArea .header p { font-size: 12px; opacity: 0.9; margin-top: 3px; position: relative; z-index: 1; }

/* ---------- Rejilla ---------- */
#captureArea .grid-container { padding: 10px; }

#captureArea .grid-table { width: 100%; border-collapse: collapse; }
#captureArea .grid-table th {
  background: #e2e8f0;
  color: #4a5568;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid #cbd5e0;
}
#captureArea .grid-table th.minute-header {
  background: #2d3748;
  color: #fff;
  width: 40px;
  font-size: 13px;
}
#captureArea .grid-table th.period-col {
  background: #2d3748;
  color: #fff;
  font-size: 12px;
}
#captureArea .grid-table td {
  border: 1px solid #cbd5e0;
  padding: 4px;
  vertical-align: middle;
  text-align: center;
  height: 60px;
}
#captureArea .grid-table td.minute-cell {
  background: #2d3748;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  width: 40px;
  border-color: #4a5568;
}

#captureArea .player-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
}
#captureArea .player-cell .photo-wrapper { position: relative; flex-shrink: 0; }
#captureArea .player-cell .player-photo {
  width: 36px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}
#captureArea .player-cell .team-shield {
  width: 16px;
  height: 18px;
  position: absolute;
  bottom: -2px;
  right: -4px;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
#captureArea .player-cell .player-label {
  font-size: 10px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.2;
  text-align: left;
}

#captureArea .empty-cell { background: #f7fafc; }

/* ---------- Leyenda ---------- */
#captureArea .legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 15px;
  font-size: 10px;
  color: #4a5568;
}
#captureArea .legend-item { display: flex; align-items: center; gap: 4px; }
#captureArea .legend-color {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #cbd5e0;
}

/* ---------- Pie ---------- */
#captureArea .footer {
  background: #2d3748;
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
#captureArea .footer span { opacity: 0.8; }
